File tree Expand file tree Collapse file tree 7 files changed +25
-7
lines changed Expand file tree Collapse file tree 7 files changed +25
-7
lines changed Original file line number Diff line number Diff line change
1
+ 1.2-7 | 2025-03-20 10:09:16 +0100
2
+
3
+ * Make btest-bg-run delay configurable (Arne Welzel, Corelight)
4
+
5
+ Allow users to remove the unconditional sleep 1 by introducing
6
+ a new environment variable BTEST_BG_RUN_SLEEP that specifies the
7
+ amount of seconds to sleep. If tests are written robustly, setting
8
+ this to 0 can speed up execution of btest-bg-run heavy test suites.
9
+
10
+ * Make btest-bg-wait more responsive (Arne Welzel, Corelight)
11
+
12
+ Sleep 10 msec instead of 1 second to check for process termination to
13
+ make detecting process termination a bit more timely.
14
+
1
15
1.2-4 | 2025-01-29 09:03:57 -0700
2
16
3
17
* Require CMake 3.15, inline with other Zeek projects (Tim Wojtulewicz, Corelight)
Original file line number Diff line number Diff line change 2
2
..
3
3
.. Version number is filled in automatically.
4
4
5
- .. |version| replace:: 1.2-4
5
+ .. |version| replace:: 1.2-7
6
6
7
7
==================================================
8
8
BTest - A Generic Driver for Powerful System Tests
Original file line number Diff line number Diff line change 1
- 1.2-4
1
+ 1.2-7
Original file line number Diff line number Diff line change 56
56
import multiprocessing .managers as mp_managers
57
57
import multiprocessing .sharedctypes as mp_sharedctypes
58
58
59
- VERSION = "1.2-4 " # Automatically filled in.
59
+ VERSION = "1.2-7 " # Automatically filled in.
60
60
61
61
Name = "btest"
62
62
Config = None
Original file line number Diff line number Diff line change 6
6
# and spawns <cmdline> in there in the background. It also records
7
7
# a set of meta information that btest-bg-wait will read.
8
8
9
+ # Sleep this many seconds after creating the process and before
10
+ # returning from btest-bg-run.
11
+ BTEST_BG_RUN_SLEEP=${BTEST_BG_RUN_SLEEP:- 1}
12
+
9
13
if [ " $# " -le 1 ]; then
10
14
echo " usage: $( basename " $0 " ) <tag> <cmdline>"
11
15
exit 1
@@ -33,4 +37,4 @@ echo "$@" >.cmdline
33
37
34
38
$setsid " $helper " " $@ " > .stdout 2> .stderr &
35
39
36
- sleep 1
40
+ sleep " $BTEST_BG_RUN_SLEEP "
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ if [ $# != 1 ]; then
25
25
exit 1
26
26
fi
27
27
28
- timeout=$1
28
+ timeout=$(( $1 * 100 ))
29
29
30
30
procs=$( cat .bgprocs)
31
31
@@ -122,7 +122,7 @@ while true; do
122
122
exit 1
123
123
fi
124
124
125
- sleep 1
125
+ sleep 0.01
126
126
done
127
127
128
128
trap - EXIT
Original file line number Diff line number Diff line change 5
5
py_modules = ["btest-sphinx" ]
6
6
7
7
setup (
8
- version = "1.2.dev4 " , # Filled in automatically.
8
+ version = "1.2.dev7 " , # Filled in automatically.
9
9
py_modules = py_modules ,
10
10
)
You can’t perform that action at this time.
0 commit comments