From 5027e2749730151c9780e31cce1d150709b0972b Mon Sep 17 00:00:00 2001 From: grvvy Date: Mon, 17 Oct 2022 12:41:52 -0600 Subject: [PATCH] CI: add serial numbers for both connected HackRFs --- Dockerfile | 6 +++++- ci-scripts/test-firmware-flash.sh | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 53e37d19..5acda8f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM ubuntu:20.04 CMD ["/bin/bash"] # Override interactive installations and install prerequisites -ENV DEBIAN_FRONTEND=noninteractive +ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -y \ build-essential \ cmake \ @@ -19,5 +19,9 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* 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 EXPOSE 8080 diff --git a/ci-scripts/test-firmware-flash.sh b/ci-scripts/test-firmware-flash.sh index a56d8fa3..2084ac4f 100755 --- a/ci-scripts/test-firmware-flash.sh +++ b/ci-scripts/test-firmware-flash.sh @@ -3,7 +3,7 @@ host/build/hackrf-tools/src/hackrf_spiflash -w firmware/hackrf_usb/build/hackrf_ EXIT_CODE="$?" if [ "$EXIT_CODE" == "1" ] then - echo "No GreatFET found! Disconnected? Exiting.." + echo "No HackRF found! Disconnected? Exiting.." exit $EXIT_CODE elif [ "$EXIT_CODE" == "0" ] then @@ -13,6 +13,6 @@ then echo "Host tool installation failed! Exiting.." exit $EXIT_CODE else - echo "god have mercy on your soul" + echo "Unknown error" exit $EXIT_CODE fi \ No newline at end of file