CI: add serial numbers for both connected HackRFs

This commit is contained in:
grvvy
2022-10-17 12:41:52 -06:00
parent 2b3e2e52cb
commit 5027e27497
2 changed files with 7 additions and 3 deletions

View File

@ -3,7 +3,7 @@ FROM ubuntu:20.04
CMD ["/bin/bash"] CMD ["/bin/bash"]
# Override interactive installations and install prerequisites # Override interactive installations and install prerequisites
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
build-essential \ build-essential \
cmake \ cmake \
@ -19,5 +19,9 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN pip3 install git+https://github.com/CapableRobot/CapableRobot_USBHub_Driver --upgrade RUN pip3 install git+https://github.com/CapableRobot/CapableRobot_USBHub_Driver --upgrade
# Serial numbers for EUT and TESTER devices connected to the test server
ENV EUT=RunningFromRAM
ENV TESTER=0000000000000000325866e629a25623
# Inform Docker that the container is listening on port 8080 at runtime # Inform Docker that the container is listening on port 8080 at runtime
EXPOSE 8080 EXPOSE 8080

View File

@ -3,7 +3,7 @@ host/build/hackrf-tools/src/hackrf_spiflash -w firmware/hackrf_usb/build/hackrf_
EXIT_CODE="$?" EXIT_CODE="$?"
if [ "$EXIT_CODE" == "1" ] if [ "$EXIT_CODE" == "1" ]
then then
echo "No GreatFET found! Disconnected? Exiting.." echo "No HackRF found! Disconnected? Exiting.."
exit $EXIT_CODE exit $EXIT_CODE
elif [ "$EXIT_CODE" == "0" ] elif [ "$EXIT_CODE" == "0" ]
then then
@ -13,6 +13,6 @@ then
echo "Host tool installation failed! Exiting.." echo "Host tool installation failed! Exiting.."
exit $EXIT_CODE exit $EXIT_CODE
else else
echo "god have mercy on your soul" echo "Unknown error"
exit $EXIT_CODE exit $EXIT_CODE
fi fi