Stop all arrays before running each test in regression test driver.
Sometimes I forget to stop arrays at the end of scripts, and that shows errors in the next script, which is confusing.
This commit is contained in:
parent
3576e302fe
commit
908ef18519
2
test
2
test
|
@ -171,6 +171,8 @@ do
|
||||||
if [ -f "$script" ]
|
if [ -f "$script" ]
|
||||||
then
|
then
|
||||||
rm -f $targetdir/stderr
|
rm -f $targetdir/stderr
|
||||||
|
# stop all arrays, just incase some script left an array active.
|
||||||
|
mdadm -Ssq
|
||||||
# source script in a subshell, so it has access to our
|
# source script in a subshell, so it has access to our
|
||||||
# namespace, but cannot change it.
|
# namespace, but cannot change it.
|
||||||
if ( set -ex ; . $script ) 2> $targetdir/log
|
if ( set -ex ; . $script ) 2> $targetdir/log
|
||||||
|
|
Loading…
Reference in New Issue