зеркало из https://github.com/microsoft/Oryx.git
Bugfix: storage account tests stopping at first empty line (#1482)
* updated storage account tests to view entire versions file, not stopping at the very first empty line * trim lines in storage account tests to account for only whitespace lines
This commit is contained in:
Родитель
a1442955ff
Коммит
934a36dc82
|
@ -331,10 +331,13 @@ namespace Oryx.Integration.Tests
|
|||
using (var streamReader = new StreamReader(versionFile))
|
||||
{
|
||||
string line = null;
|
||||
while ((line = streamReader.ReadLine()) != null && !string.IsNullOrEmpty(line))
|
||||
while ((line = streamReader.ReadLine()) != null)
|
||||
{
|
||||
// ignore comments
|
||||
if (line.StartsWith("#"))
|
||||
// Remove extraneous whitespace
|
||||
line = line.Trim();
|
||||
|
||||
// ignore comments or empty lines
|
||||
if (line.StartsWith("#") || string.IsNullOrEmpty(line))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
@ -363,10 +366,13 @@ namespace Oryx.Integration.Tests
|
|||
using (var streamReader = new StreamReader(file))
|
||||
{
|
||||
string line = null;
|
||||
while ((line = streamReader.ReadLine()) != null && !string.IsNullOrEmpty(line))
|
||||
while ((line = streamReader.ReadLine()) != null)
|
||||
{
|
||||
// ignore comments
|
||||
if (line.StartsWith("#"))
|
||||
// Remove extraneous whitespace
|
||||
line = line.Trim();
|
||||
|
||||
// ignore comments or empty lines
|
||||
if (line.StartsWith("#") || string.IsNullOrEmpty(line))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче