diff options
author | Linus Groh <mail@linusgroh.de> | 2020-12-02 23:51:04 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-03 21:55:02 +0100 |
commit | 7cbdf465ba03e41bdfc4b2253855e50ab74b2ae3 (patch) | |
tree | d45c67a5a7c66e3a64f72f0eb984c0ce065ea2c4 | |
parent | 4062add8edd5c8f7c180fa78a508e7d898cfbb11 (diff) | |
download | serenity-7cbdf465ba03e41bdfc4b2253855e50ab74b2ae3.zip |
test-js: Set test root correctly when specified as positional arg
When a test root path was given to test-js it was never used, causing
test-js to always fail.
-rw-r--r-- | Userland/test-js.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/test-js.cpp b/Userland/test-js.cpp index 59d642e756..6e523b7030 100644 --- a/Userland/test-js.cpp +++ b/Userland/test-js.cpp @@ -731,7 +731,9 @@ int main(int argc, char** argv) String test_root; - if (!specified_test_root) { + if (specified_test_root) { + test_root = String { specified_test_root }; + } else { #ifdef __serenity__ test_root = "/home/anon/js-tests"; #else |