Lines Matching refs:resdir
23 resdir="$1"
24 if ! test -d "$resdir"
26 echo $0: Nonexistent directory: $resdir
29 if ! test -f "$resdir/qemu-cmd"
31 echo $0: Nonexistent qemu-cmd file: $resdir/qemu-cmd
38 grep '^#' $resdir/qemu-cmd | sed -e 's/^# //' > $T/qemu-cmd-settings
47 sed -e 's/^[^#].*$/'"$taskset_command"'& 2>\&1 \&/' < $resdir/qemu-cmd > $T/qemu-cmd
53 echo "NOTE: $QEMU either did not run or was interactive" > $resdir/console.log
57 ( . $T/qemu-cmd; wait `cat $resdir/qemu-pid`; echo $? > $resdir/qemu-retval ) &
62 if test -s "$resdir/qemu-pid"
64 qemu_pid=`cat "$resdir/qemu-pid"`
73 base_resdir=`echo $resdir | sed -e 's/\.[0-9]\+$//'`
76 base_resdir="`cat re-run`/$resdir"
91 if test -z "$qemu_pid" && test -s "$resdir/qemu-pid"
93 qemu_pid=`cat "$resdir/qemu-pid"`
101 elif test $kruntime -ge $seconds || test -f "$resdir/../STOP.1"
110 echo Completed in $kruntime vs. $seconds >> $resdir/Warnings 2>&1
111 grep "^(qemu) qemu:" $resdir/kvm-test-1-run*.sh.out >> $resdir/Warnings 2>&1
112 …ed -n "s/^(qemu) qemu: terminating on signal [0-9]* from pid \([0-9]*\).*$/\1/p" $resdir/Warnings`"
115 echo "ps -fp $killpid" >> $resdir/Warnings 2>&1
116 ps -fp $killpid >> $resdir/Warnings 2>&1
124 if test -z "$qemu_pid" && test -s "$resdir/qemu-pid"
126 qemu_pid=`cat "$resdir/qemu-pid"`
130 if ! test -f "$resdir/../STOP.1"
134 oldline="`tail $resdir/console.log`"
137 if test -f "$resdir/../STOP.1"
139 echo "PID $qemu_pid killed due to run STOP.1 request `date`" >> $resdir/Warnings 2>&1
151 newline="`tail $resdir/console.log`"
156 …last_ts="`tail $resdir/console.log | grep '^\[ *[0-9]\+\.[0-9]\+]' | tail -1 | sed -e 's/^\[ *//' …
166 echo Continuing at console.log time $last_ts \"`tail -n 1 $resdir/console.log`\" `date`
171 echo "!!! PID $qemu_pid hung at $kruntime vs. $seconds seconds `date`" >> $resdir/Warnings 2>&1
184 rm -f $resdir/build.run