Skip to content

Commit 3e93a51

Browse files
committed
torture: Create qemu-cmd in --buildonly runs
One reason to do a --buildonly run is to use the build products elsewhere, for example, to do the actual test on some other system. Part of doing the test is the actual qemu command, which is not currently produced by --buildonly runs. This commit therefore causes --buildonly runs to create this file. Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 8f43d59 commit 3e93a51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ qemu_append="`identify_qemu_append "$QEMU"`"
153153
boot_args="`configfrag_boot_params "$boot_args" "$config_template"`"
154154
# Generate kernel-version-specific boot parameters
155155
boot_args="`per_version_boot_params "$boot_args" $resdir/.config $seconds`"
156+
echo $QEMU $qemu_args -m $TORTURE_QEMU_MEM -kernel $KERNEL -append \"$qemu_append $boot_args\" > $resdir/qemu-cmd
156157

157158
if test -n "$TORTURE_BUILDONLY"
158159
then
@@ -161,7 +162,6 @@ then
161162
exit 0
162163
fi
163164
echo "NOTE: $QEMU either did not run or was interactive" > $resdir/console.log
164-
echo $QEMU $qemu_args -m $TORTURE_QEMU_MEM -kernel $KERNEL -append \"$qemu_append $boot_args\" > $resdir/qemu-cmd
165165
( $QEMU $qemu_args -m $TORTURE_QEMU_MEM -kernel $KERNEL -append "$qemu_append $boot_args" > $resdir/qemu-output 2>&1 & echo $! > $resdir/qemu_pid; wait `cat $resdir/qemu_pid`; echo $? > $resdir/qemu-retval ) &
166166
commandcompleted=0
167167
sleep 10 # Give qemu's pid a chance to reach the file

0 commit comments

Comments
 (0)