Skip to content
Permalink
Browse files
[run-jsc-stress-tests] Catch user error
https://bugs.webkit.org/show_bug.cgi?id=240905

Reviewed by Adrian Perez de Castro and Jonathan Bedard.

When the user has made a typo in the argument to --filter (selecting no
tests to execute), bring that to the user's attention instead of exiting
without an error.

* Tools/Scripts/run-jsc-stress-tests:

Canonical link: https://commits.webkit.org/250977@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294825 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
aoikonomopoulos committed May 25, 2022
1 parent 2ec4b74 commit d66b227a1dae472a9755a8b004444913896cb561
Showing 1 changed file with 5 additions and 0 deletions.
@@ -2462,6 +2462,11 @@ def prepareBundle
handleCollection(collection)
}

if $runlist.size == 0
$stderr.puts("No tests selected for execution (overzealous --filter?)")
exit(2)
end

puts
end

0 comments on commit d66b227

Please sign in to comment.