#!/bin/bash

IOC=$1
IP=$2

NARGS=$#
if [ $NARGS -ne 2 ]; then
    echo "nrf_fpga_reboot.sh: 2 arguments expected, but received ${NARGS}."
        usage
    exit 0
fi

SCRIPTDIR=$EPICS_IOCS/$IOC/iocSpecificRelease/uspas_llrf/submodules/bedrock/badger/tests

cd $SCRIPTDIR
FPGAIP=$IP
CMD="python spi_test.py --ip $FPGAIP --reboot7 --upper"
echo $CMD
$CMD
