Handle errors during log download
This commit is contained in:
parent
630dc2814a
commit
eed989cbf5
|
@ -98,7 +98,7 @@ namespace DistTestCore
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
fixtureLog.Error("Cleanup failed: " + ex.Message);
|
fixtureLog.Error("Cleanup failed: " + ex);
|
||||||
GlobalTestFailure.HasFailed = true;
|
GlobalTestFailure.HasFailed = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,6 +92,8 @@ namespace DistTestCore
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DownloadAllLogs()
|
public void DownloadAllLogs()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
foreach (var rc in runningContainers)
|
foreach (var rc in runningContainers)
|
||||||
{
|
{
|
||||||
|
@ -101,5 +103,10 @@ namespace DistTestCore
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Log.Error("Exception during log download: " + ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue