This is a simpler version of Sean Christopherson's patch, which also allows specifying more than one test. Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx> --- run_tests.sh | 2 ++ scripts/runtime.bash | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/run_tests.sh b/run_tests.sh index 102c806..6b0af19 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -65,6 +65,8 @@ while getopts "ag:htj:v" opt; do ;; esac done +shift $((OPTIND - 1)) +only_tests="$*" # RUNTIME_log_file will be configured later RUNTIME_log_stderr () { cat >> $RUNTIME_log_file; } diff --git a/scripts/runtime.bash b/scripts/runtime.bash index fffa7dd..2f8026d 100644 --- a/scripts/runtime.bash +++ b/scripts/runtime.bash @@ -97,6 +97,10 @@ function run() return fi + if [ -n "$only_tests" ] && ! grep -qw "$testname" <<<$only_tests; then + return + fi + if [ -n "$only_group" ] && ! grep -qw "$only_group" <<<$groups; then return fi -- 1.8.3.1