Handle errors during log download

This commit is contained in:
benbierens 2024-04-15 11:37:14 +02:00
parent 630dc2814a
commit eed989cbf5
No known key found for this signature in database
GPG Key ID: 877D2C2E09A22F3A
2 changed files with 11 additions and 4 deletions

View File

@ -98,7 +98,7 @@ namespace DistTestCore
}
catch (Exception ex)
{
fixtureLog.Error("Cleanup failed: " + ex.Message);
fixtureLog.Error("Cleanup failed: " + ex);
GlobalTestFailure.HasFailed = true;
}
}

View File

@ -93,13 +93,20 @@ namespace DistTestCore
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);
}
}
}
}