Unverified Commit 847cdca1 authored by Valentino Geron's avatar Valentino Geron Committed by GitHub
Browse files

Add an option to specify multiple skip files using `--skipfile` (#10975)



`--skipfile` can be repeated.
For example: ./runtests --skipfile file1.txt --skipfile file2.txt
Co-authored-by: default avatarValentino Geron <valentino@redis.com>
parent 599e59eb
......@@ -600,7 +600,7 @@ proc print_help_screen {} {
"--timeout <sec> Test timeout in seconds (default 20 min)."
"--force-failure Force the execution of a test that always fails."
"--config <k> <v> Extra config file argument."
"--skipfile <file> Name of a file containing test names or regexp patterns (if <test> starts with '/') that should be skipped (one per line)."
"--skipfile <file> Name of a file containing test names or regexp patterns (if <test> starts with '/') that should be skipped (one per line). This option can be repeated."
"--skiptest <test> Test name or regexp pattern (if <test> starts with '/') to skip. This option can be repeated."
"--tags <tags> Run only tests having specified tags or not having '-' prefixed tags."
"--dont-clean Don't delete redis log files after the run."
......@@ -646,7 +646,7 @@ for {set j 0} {$j < [llength $argv]} {incr j} {
set fp [open $arg r]
set file_data [read $fp]
close $fp
set ::skiptests [split $file_data "\n"]
set ::skiptests [concat $::skiptests [split $file_data "\n"]]
} elseif {$opt eq {--skiptest}} {
lappend ::skiptests $arg
incr j
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment