diff options
Diffstat (limited to '050scenario.cc')
-rw-r--r-- | 050scenario.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/050scenario.cc b/050scenario.cc index a87c1b26..8200d702 100644 --- a/050scenario.cc +++ b/050scenario.cc @@ -116,13 +116,12 @@ for (long long int i = 0; i < SIZE(Scenarios); ++i) { } //: Convenience: run a single named scenario. -:(before "Loading Commandline Files") -if (argc == 2 && Run_tests) { - for (long long int i = 0; i < SIZE(Scenarios); ++i) { - if (Scenarios.at(i).name == argv[1]) { - run_mu_scenario(Scenarios.at(i)); - return 0; - } +:(after "Test Runs") +for (long long int i = 0; i < SIZE(Scenarios); ++i) { + if (Scenarios.at(i).name == argv[argc-1]) { + run_mu_scenario(Scenarios.at(i)); + if (Passed) cerr << ".\n"; + return 0; } } |