Merge pull request #1997 from aws-lumberyard-dev/aztestrunner_retry_command

Adding C++ retry command
This commit is contained in:
Sean Sweeney
2021-08-12 11:15:46 -07:00
committed by GitHub
+6 -6
View File
@@ -121,12 +121,6 @@ namespace AzTestRunner
{
const char* cwd = AzTestRunner::get_current_working_directory();
std::cout << "cwd = " << cwd << std::endl;
for (int i = 0; i < argc; i++)
{
std::cout << "arg[" << i << "] " << argv[i] << std::endl;
}
std::cout << "LIB: " << lib << std::endl;
}
@@ -227,6 +221,12 @@ namespace AzTestRunner
testMainFunction.reset();
}
// Construct a retry command if the test fails
if (result != 0)
{
std::cout << "Retry command: " << std::endl << argv[0] << " " << lib << " " << symbol << std::endl;
}
// unload and reset the module here, because it needs to release resources that were used / activated in
// system allocator / etc.
module.reset();