mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 13:27:29 -04:00
fix debug log gathering on failure
This commit is contained in:
parent
ea1e0f201e
commit
c461b66b59
1 changed files with 9 additions and 4 deletions
|
@ -1,8 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
# exit when any command fails
|
||||
set -e
|
||||
|
||||
show_usage()
|
||||
{
|
||||
echo "Vortex BlackBox Test Driver v1.0"
|
||||
|
@ -137,6 +134,8 @@ echo "CONFIGS=$CONFIGS"
|
|||
|
||||
make -C $DRIVER_PATH $CLEAN_TOKEN
|
||||
|
||||
status=0
|
||||
|
||||
if [ $DEBUG -eq 1 ]
|
||||
then
|
||||
if [ $SCOPE -eq 1 ]
|
||||
|
@ -149,8 +148,10 @@ then
|
|||
if [ $HAS_ARGS -eq 1 ]
|
||||
then
|
||||
OPTS=$ARGS make -C $APP_PATH run-$DRIVER > run.log 2>&1
|
||||
status=$?
|
||||
else
|
||||
make -C $APP_PATH run-$DRIVER > run.log 2>&1
|
||||
status=$?
|
||||
fi
|
||||
|
||||
if [ -f "$APP_PATH/trace.vcd" ]
|
||||
|
@ -168,7 +169,11 @@ else
|
|||
if [ $HAS_ARGS -eq 1 ]
|
||||
then
|
||||
OPTS=$ARGS make -C $APP_PATH run-$DRIVER
|
||||
status=$?
|
||||
else
|
||||
make -C $APP_PATH run-$DRIVER
|
||||
status=$?
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
exit $status
|
Loading…
Add table
Add a link
Reference in a new issue