From 7cbdf465ba03e41bdfc4b2253855e50ab74b2ae3 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 2 Dec 2020 23:51:04 +0000 Subject: [PATCH] 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. --- Userland/test-js.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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