Add helpful check for making repro cases

This commit is contained in:
baldurk
2019-11-20 18:53:00 +00:00
parent dedd3e83fa
commit 1cd0f0b5e2
+6 -1
View File
@@ -330,7 +330,12 @@ Usage: %s Test_Name [test_options]
std::string testchoice;
if(argc >= 2)
if(tests.size() == 1)
{
// if there's only one test we've probably hardcoded this for a repro. Launch it
testchoice = tests[0].Name;
}
else if(argc >= 2)
{
testchoice = argv[1];
}