Simplified and moved aztestrunner retry command

Signed-off-by: evanchia <evanchia@amazon.com>
This commit is contained in:
evanchia
2021-07-14 16:09:00 -07:00
parent b1a1f78ca6
commit 9bd5b9fbd6
+6 -11
View File
@@ -129,13 +129,6 @@ namespace AzTestRunner
std::cout << "LIB: " << lib << std::endl;
}
// Construct a retry command if test fails
std::string retry_command = "Retry command: " + std::string(argv[0]) + " " + lib + " " + symbol;
for (int i = 1; i < argc; i++)
{
retry_command.append(" " + std::string(argv[i]));
}
// Wait for debugger
if (waitForDebugger)
{
@@ -229,14 +222,16 @@ namespace AzTestRunner
if (testMainFunction->IsValid())
{
result = (*testMainFunction)(argc, argv);
if (result != 0)
{
std::cout << retry_command << std::endl;
}
std::cout << "OKAY " << symbol << "() returned " << result << std::endl;
testMainFunction.reset();
}
// Construct a retry command if the test fails
if (result != 0)
{
std::cout << "Retry command: " << std::string(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();