mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
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:
parent
4062add8ed
commit
7cbdf465ba
Notes:
sideshowbarker
2024-07-19 01:03:58 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/7cbdf465ba0 Pull-request: https://github.com/SerenityOS/serenity/pull/4312
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue