diff options
| author | Dan Engelbrecht <[email protected]> | 2023-05-10 00:02:33 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-10 00:02:33 +0200 |
| commit | eabe3ea211bc114f45c460728d8ad119d798efe3 (patch) | |
| tree | be06ef964c0104a0a54b8876fc31e4da0b35bc5e | |
| parent | monitor if a state-maker file still exists, and if not error out and exit (#283) (diff) | |
| download | zen-eabe3ea211bc114f45c460728d8ad119d798efe3.tar.xz zen-eabe3ea211bc114f45c460728d8ad119d798efe3.zip | |
fix return code on tests (#284)
fix help for xmake test
| -rw-r--r-- | src/zencore/testing.cpp | 4 | ||||
| -rw-r--r-- | xmake.lua | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/zencore/testing.cpp b/src/zencore/testing.cpp index 1599e9d1f..5531aa738 100644 --- a/src/zencore/testing.cpp +++ b/src/zencore/testing.cpp @@ -42,9 +42,7 @@ TestRunner::ApplyCommandLine(int argc, char const* const* argv) int TestRunner::Run() { - int Rv = 0; - - m_Impl->Session.run(); + int Rv = m_Impl->Session.run(); return Rv; } @@ -178,7 +178,7 @@ task("sln") task("test") set_menu { - usage = "xmake runtest [core|store|server|integration|all]", + usage = "xmake test --run=[core|store|server|integration|all]", description = "Run Zen tests", options = { {'r', "run", "kv", "all", "Run test(s)", " - all", " - core ", " - store", " - server", " - integration"}, |