mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
Tests: Add environment variable for tests only
This is useful for CI where we don't want to spend a minute and a half benchmarking Vector::append, and we don't have a good way to pass test-specific arguments yet. :)
This commit is contained in:
parent
77d4b6e435
commit
89ee38fe5c
Notes:
sideshowbarker
2024-07-18 19:08:06 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/89ee38fe5cf Pull-request: https://github.com/SerenityOS/serenity/pull/6628
2 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ int TestSuite::main(const String& suite_name, int argc, char** argv)
|
|||
|
||||
Core::ArgsParser args_parser;
|
||||
|
||||
bool do_tests_only = false;
|
||||
bool do_tests_only = getenv("TESTS_ONLY") != nullptr;
|
||||
bool do_benchmarks_only = false;
|
||||
bool do_list_cases = false;
|
||||
const char* search_string = "*";
|
||||
|
|
|
@ -155,7 +155,7 @@ User=anon
|
|||
[TestRunner@ttyS0]
|
||||
Executable=/home/anon/tests/run-tests-and-shutdown.sh
|
||||
StdIO=/dev/ttyS0
|
||||
Environment=DO_SHUTDOWN_AFTER_TESTS=1 TERM=xterm PATH=/bin:/usr/bin:/usr/local/bin
|
||||
Environment=DO_SHUTDOWN_AFTER_TESTS=1 TERM=xterm PATH=/bin:/usr/bin:/usr/local/bin TESTS_ONLY=1
|
||||
User=anon
|
||||
WorkingDirectory=/home/anon
|
||||
BootModes=self-test
|
||||
|
|
Loading…
Reference in a new issue