File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 18
18
- name : test-multithread (5X)
19
19
run : |
20
20
sudo apt-get install -y tcl8.5
21
- ./runtest --loopn 5 --config server-threads 3 --clients 5
21
+ ./runtest --loopn 5 --config server-threads 3 --clients 5 --endurance
22
22
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ set ::dont_clean 0
104
104
set ::wait_server 0
105
105
set ::stop_on_failure 0
106
106
set ::loop 0
107
+ set ::endurance 0
107
108
set ::tlsdir " tests/tls"
108
109
109
110
# Set to 1 when we are running in client mode. The Redis test uses a
@@ -215,9 +216,13 @@ proc s {args} {
215
216
# test server, so that the test server will send them again to
216
217
# clients once the clients are idle.
217
218
proc run_solo {name code} {
218
- if {$::numclients == 1 || $::loop < 0 || $::external } {
219
+ if {$::numclients == 1 || $::loop < 0 || $::external || $::endurance } {
219
220
# run_solo is not supported in these scenarios, just run the code.
220
- eval $code
221
+ if {$::endurance } {
222
+ puts " Skipping solo tests because endurance mode is enabled"
223
+ } else {
224
+ eval $code
225
+ }
221
226
return
222
227
}
223
228
send_data_packet $::test_server_fd run_solo [list $name $code ]
@@ -620,6 +625,8 @@ for {set j 0} {$j < [llength $argv]} {incr j} {
620
625
} elseif {$opt eq {--timeout}} {
621
626
set ::timeout $arg
622
627
incr j
628
+ } elseif {$opt eq {--endurance}} {
629
+ set ::endurance 1
623
630
} elseif {$opt eq {--help}} {
624
631
print_help_screen
625
632
exit 0
You can’t perform that action at this time.
0 commit comments