Skip to content

Commit

Permalink
tests: remove pin oracle tests are they are run in the pin oracle repo
Browse files Browse the repository at this point in the history
  • Loading branch information
greenaddress authored and JamieDriver committed Jun 3, 2024
1 parent 7ee36ee commit f32ecd9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
**
!requirements.txt
!pinserver/requirements.txt
!.git
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,5 @@ RUN cd qemu && ./configure --target-list=xtensa-softmmu --prefix=/opt \
FROM esp-idf
COPY --from=esp-qemu /opt /opt
COPY requirements.txt /
COPY pinserver/requirements.txt /ps_requirements.txt
SHELL ["/bin/bash", "-c"]
RUN virtualenv -p python3 /venv && source /venv/bin/activate && pip install --require-hashes -r /requirements.txt -r /ps_requirements.txt
RUN virtualenv -p python3 /venv && source /venv/bin/activate && pip install --require-hashes -r /requirements.txt
12 changes: 1 addition & 11 deletions ci_flash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,7 @@ sleep 1

source ~/venv3/bin/activate

pip install --require-hashes -r requirements.txt -r pinserver/requirements.txt

SESSION_LIFETIME="${PINSVR_SESSION_TIMEOUT}" PINSERVER_PORT="${PINSVRPORT}" python -m unittest -v

if command -v redis-server &> /dev/null
then
echo "Redis found, running tests on localhost:${REDIS_PORT}"
redis-server --port ${REDIS_PORT} &
REDIS_HEALTH_CHECK_INTERVAL=0 REDIS_SLEEP=0 REDIS_PORT=${REDIS_PORT} REDIS_HOST='localhost' SESSION_LIFETIME="${PINSVR_SESSION_TIMEOUT}" PINSERVER_PORT="${PINSVRPORT}" python -m unittest -v
redis-cli -p ${REDIS_PORT} shutdown
fi
pip install --require-hashes -r requirements.txt

# NOTE: tools/fwprep.py should have run in the build step and produced the compressed firmware file
FW_FULL=$(ls build/*_fw.bin)
Expand Down

0 comments on commit f32ecd9

Please sign in to comment.