Check SNAP_CONFIG, default to FPGA mode if not set.
@@ -61,7 +61,14 @@ done
export PATH=$PATH:${SNAP_ROOT}/software/tools:${ACTION_ROOT}/sw
+# Set default value for SNAP_CONFIG to FPGA if not set
if [ -z "$SNAP_CONFIG" ]; then
+ SNAP_CONFIG=FPGA
+fi
+
+echo "SNAP_CONFIG = ${SNAP_CONFIG} Mode"
+if [ ${SNAP_CONFIG} == "FPGA" ]; then
+ # Can only do this when in hardware mode
snap_maint -C ${snap_card} -v || exit 1;
fi
@@ -103,6 +110,5 @@ fi
if [ "$duration" = "NORMAL" ]; then
test_sha3_shake
fi
-
echo "Test OK"
exit 0
