Skip to content

Commit

Permalink
boottests: Print the simulator output if V=1 is set
Browse files Browse the repository at this point in the history
Currently we only print it on failures, but sometimes it's nice to see
the output in the successful cases too.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
  • Loading branch information
oohal committed Dec 4, 2019
1 parent 9be9a77 commit 0990e82
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/hello_world/run_mambo_hello_world.sh
Expand Up @@ -58,6 +58,7 @@ if [ $r != 0 ]; then
exit $r
fi

if [ -n "$V" ] ; then cat "$t" ; fi
rm -f -- "$t"
trap - EXIT
exit 0;
1 change: 1 addition & 0 deletions test/hello_world/run_mambo_p9_hello_world.sh
Expand Up @@ -58,6 +58,7 @@ if [ $r != 0 ]; then
exit $r
fi

if [ -n "$V" ] ; then cat "$t" ; fi
rm -f -- "$t"
trap - EXIT
exit 0;
1 change: 1 addition & 0 deletions test/hello_world/run_qemu_hello_world.sh
Expand Up @@ -50,6 +50,7 @@ if [ $r != 0 ]; then
exit $r
fi

if [ -n "$V" ] ; then cat "$t" ; fi
rm -f -- "$t"
trap - EXIT

Expand Down
1 change: 1 addition & 0 deletions test/run_mambo_boot_test.sh
Expand Up @@ -65,6 +65,7 @@ if [ $r != 0 ]; then
exit $r
fi

if [ -n "$V" ] ; then cat "$t" ; fi
rm -f -- "$t"
trap - EXIT
exit 0
1 change: 1 addition & 0 deletions test/run_qemu_boot_test.sh
Expand Up @@ -55,6 +55,7 @@ if [ $E -eq 3 ]; then
exit 0;
fi

if [ -n "$V" ] ; then cat "$t" ; fi
if [ $E -eq 0 ]; then
rm $T
else
Expand Down
1 change: 1 addition & 0 deletions test/sreset_world/run_mambo_p9_sreset.sh
Expand Up @@ -70,6 +70,7 @@ if [ $r != 0 ]; then
exit $r
fi

if [ -n "$V" ] ; then cat "$t" ; fi
rm -f -- "$t"
trap - EXIT
exit 0;
1 change: 1 addition & 0 deletions test/sreset_world/run_mambo_sreset.sh
Expand Up @@ -70,6 +70,7 @@ if [ $r != 0 ]; then
exit $r
fi

if [ -n "$V" ] ; then cat "$t" ; fi
rm -f -- "$t"
trap - EXIT
exit 0;

0 comments on commit 0990e82

Please sign in to comment.