Commit f1270a8
authored
Adjust test runners to the number of tests to run (#2759)
This is fixing a minor annoyance when running single tests. With this
change, the runtest script doesn't start more runners than the total
number of tests to run. These are seen in the printouts like `[ready]:
68359`.
Screenshot before:
```
$ ./runtest --single tests/unit/limits.tcl
Cleanup: may take some time... OK
Starting test server at port 21079
[ready]: 68359
Testing unit/limits
[ready]: 68355
[ready]: 68362
[ready]: 68356
[ready]: 68361
[ready]: 68358
[ready]: 68364
[ready]: 68366
[ready]: 68367
[ready]: 68368
[ready]: 68357
[ready]: 68360
[ready]: 68363
[ready]: 68365
[ready]: 68369
[ready]: 68370
[ok]: Check if maxclients works refusing connections (906 ms)
[1/1 done]: unit/limits (1 seconds)
The End
Execution time of different units:
1 seconds - unit/limits
\o/ All tests passed without errors!
Cleanup: may take some time... OK
```
Screenshot after:
```
$ ./runtest --single tests/unit/limits.tcl
Cleanup: may take some time... OK
Starting test server at port 21079
[ready]: 68439
Testing unit/limits
[ok]: Check if maxclients works refusing connections (906 ms)
[1/1 done]: unit/limits (1 seconds)
The End
Execution time of different units:
1 seconds - unit/limits
\o/ All tests passed without errors!
Cleanup: may take some time... OK
```
Signed-off-by: Viktor Söderqvist <[email protected]>1 parent 746d9ec commit f1270a8
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
907 | 907 | | |
908 | 908 | | |
909 | 909 | | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
910 | 915 | | |
911 | 916 | | |
912 | 917 | | |
| |||
0 commit comments