1 # in case we're (erroneously) running in parallel, give second.do some
2 # time to start but not finish.
6 # Because of --shuffle, we can't be sure if first or second ran first, but
7 # because all.do uses -j1, we *should* expect that if second ran first, it
8 # at least ran to completion before we ran at all.
9 if [ -e second.start ]; then
10 echo 'first: second already started before we did...' >&2
11 [ -e second.end ] || exit 21
12 echo 'first: ...and it finished as it should.' >&2
13 # no sense continuing the test; can't test anything if second already
17 echo 'first: second has not started yet, good.' >&2
21 [ -e 1.a.spin ] || exit 11
22 echo 'first spin complete' >&2
24 ! [ -e second.start ] || exit 22