diff options
| author | Triang3l <triang3l@yandex.ru> | 2020-12-10 21:27:26 +0300 |
|---|---|---|
| committer | Triang3l <triang3l@yandex.ru> | 2020-12-10 21:27:26 +0300 |
| commit | db1d6b1fefea608fc3279bd60be64c329ff2b397 (patch) | |
| tree | 353b675ddc32b21e1ab9b1ed493103e642623179 | |
| parent | 040661f3669c003dd3de23112daa711ce9902b10 (diff) | |
[PPC] Fix test suite name being ignored
| -rw-r--r-- | src/xenia/cpu/ppc/testing/ppc_testing_main.cc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/xenia/cpu/ppc/testing/ppc_testing_main.cc b/src/xenia/cpu/ppc/testing/ppc_testing_main.cc index bb18dfcb6..1d115af1e 100644 --- a/src/xenia/cpu/ppc/testing/ppc_testing_main.cc +++ b/src/xenia/cpu/ppc/testing/ppc_testing_main.cc @@ -7,6 +7,7 @@ ****************************************************************************** */ +#include "xenia/base/cvar.h" #include "xenia/base/filesystem.h" #include "xenia/base/logging.h" #include "xenia/base/main.h" @@ -28,7 +29,7 @@ DEFINE_path(test_path, "src/xenia/cpu/ppc/testing/", "Directory scanned for test files.", "Other"); DEFINE_path(test_bin_path, "src/xenia/cpu/ppc/testing/bin/", "Directory with binary outputs of the test files.", "Other"); -DEFINE_transient_string(test_name, "", "Specifies test name.", "General"); +DEFINE_transient_string(test_name, "", "Test suite name.", "General"); namespace xe { namespace cpu { @@ -475,13 +476,7 @@ bool RunTests(const std::string_view test_name) { } int main(const std::vector<std::string>& args) { - // Grab test name, if present. - std::string test_name; - if (args.size() >= 2) { - test_name = args[1]; - } - - return RunTests(test_name) ? 0 : 1; + return RunTests(cvars::test_name) ? 0 : 1; } } // namespace test |
