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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -93,13 +93,20 @@ namespace DistTestCore
|
|||||||
|
|
||||||
public void DownloadAllLogs()
|
public void DownloadAllLogs()
|
||||||
{
|
{
|
||||||
foreach (var rc in runningContainers)
|
try
|
||||||
{
|
{
|
||||||
foreach (var c in rc.Containers)
|
foreach (var rc in runningContainers)
|
||||||
{
|
{
|
||||||
CoreInterface.DownloadLog(c);
|
foreach (var c in rc.Containers)
|
||||||
|
{
|
||||||
|
CoreInterface.DownloadLog(c);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Log.Error("Exception during log download: " + ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user