Skip to content

Commit ceddd17

Browse files
committed
modify
Signed-off-by: jinjiabao.jjb <[email protected]>
1 parent 2ae8801 commit ceddd17

File tree

1 file changed

+2
-44
lines changed

1 file changed

+2
-44
lines changed

scripts/test_parallel_bg.sh

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -9,47 +9,5 @@ othertag=""
99
rm -rf ./log
1010
mkdir ./log
1111

12-
./build/tests/unittests -d yes ${UT_FILTER} -a --order rand --allow-running-no-tests -o "./log/unittest.log" &
13-
pids+=($!)
14-
logger_files+=("./log/unittest.log")
15-
16-
for tag in ${parallel_tags}
17-
do
18-
othertag="~"${tag}${othertag}
19-
./build/tests/functests -d yes ${UT_FILTER} -a --order rand --allow-running-no-tests ${tag} -o ./log/${tag}.log &
20-
pids+=($!)
21-
logname="./log/"${tag}".log"
22-
logger_files+=($logname)
23-
done
24-
25-
./build/tests/functests -d yes ${UT_FILTER} -a --order rand --allow-running-no-tests ${othertag} -o ./log/other.log &
26-
pids+=($!)
27-
logger_files+=("./log/other.log")
28-
29-
for pid in "${pids[@]}"
30-
do
31-
wait $pid
32-
exit_codes+=($?)
33-
done
34-
35-
index=0
36-
all_successful=true
37-
for code in "${exit_codes[@]}"
38-
do
39-
if [ $code -ne 0 ]; then
40-
all_successful=false
41-
echo ${logger_files[${index}]} "failed"
42-
cat ${logger_files[${index}]}
43-
else
44-
echo ${logger_files[${index}]} "success"
45-
fi
46-
((index+=1))
47-
done
48-
49-
rm -rf ./log
50-
51-
if [ $all_successful = true ]; then
52-
exit 0
53-
else
54-
exit 1
55-
fi
12+
./build/tests/unittests
13+
./build/tests/functests

0 commit comments

Comments
 (0)