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.
This commit is contained in:
Linus Groh 2020-12-02 23:51:04 +00:00 committed by Andreas Kling
parent 4062add8ed
commit 7cbdf465ba
Notes: sideshowbarker 2024-07-19 01:03:58 +09:00

View file

@ -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