@@ -93,16 +93,18 @@ jobs:
9393 # Given a container with PANDA installed at /panda, run the taint tests
9494 - name : Update
9595 run : sudo apt-get -qq update -y
96- - name : Install ssl
97- run : sudo apt-get -qq install -y wget
96+ - name : Install wget and PyPanda to download QCows
97+ run : |
98+ sudo apt-get -qq install -y wget python3-pip
99+ pip3 install pandare
100+ python3 -c "from pandare.qcows_internal import Qcows;Qcows.get_qcow('i386')"
101+ python3 -c "from pandare.qcows_internal import Qcows;Qcows.get_qcow('x86_64')"
102+
98103 - name : Run Taint Tests
99104 if : matrix.test_type == 'taint'
100105 run : >-
101- wget -q -O wheezy_panda2.qcow2 https://panda-re.mit.edu/qcows/linux/debian/7.3/x86/debian_7.3_x86.qcow;
102- wget -q https://panda-re.mit.edu/qcows/linux/ubuntu/1804/x86_64/bionic-server-cloudimg-amd64-noaslr-nokaslr.qcow2;
103106 docker run --name panda_test_${{ matrix.target }}_${GITHUB_RUN_ID}
104- --mount type=bind,source=$(pwd)/wheezy_panda2.qcow2,target=/home/panda/regdir/qcows/wheezy_panda2.qcow2
105- --mount type=bind,source=$(pwd)/bionic-server-cloudimg-amd64-noaslr-nokaslr.qcow2,target=/home/panda/regdir/qcows/bionic-server-cloudimg-amd64-noaslr-nokaslr.qcow2
107+ --mount type=bind,source=$HOME/.panda,target=$HOME/.panda
106108 --rm -t "ghcr.io/${{ github.repository_owner }}/panda_local:${{ github.sha }}" bash -c
107109 "cd /tmp; git clone https://github.com/panda-re/panda_test;
108110 cd ./panda_test/tests/taint2;
@@ -118,9 +120,8 @@ jobs:
118120 - name : Run PyPanda Tests
119121 if : matrix.test_type == 'pypanda'
120122 run : >-
121- wget -q https://panda-re.mit.edu/qcows/linux/ubuntu/1604/x86/ubuntu_1604_x86.qcow;
122123 docker run --name panda_test_${{ matrix.test_script }}_${GITHUB_RUN_ID}
123- --mount type=bind,source=$(pwd)/ubuntu_1604_x86.qcow ,target=/root/ .panda/ubuntu_1604_x86.qcow
124+ --mount type=bind,source=$HOME/.panda ,target=$HOME/ .panda
124125 -e PANDA_TEST=yes --cap-add SYS_NICE
125126 --rm -t "ghcr.io/${{ github.repository_owner }}/panda_local:${{ github.sha }}" bash -c
126127 "cd /panda/panda/python/tests/ && make && pip3 install -r requirements.txt && chmod +x ./run_all_tests.sh && ./run_all_tests.sh";
0 commit comments