Skip to content

Commit

Permalink
scripts/ci/remote-runner.sh: make sure qemu-run gets the same paramet…
Browse files Browse the repository at this point in the history
…ers in env variables no mater the QEMU_FW_FILE

Signed-off-by: Piotr Król <[email protected]>
  • Loading branch information
pietrushnic committed Dec 16, 2024
1 parent 77ddfac commit 9ab33ff
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions scripts/ci/remote-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,19 @@ run_qemu() {
rsync -avz $QEMU_FW_FILE $REMOTE_USER_HOST:$REMOTE_SRC_DIR

ssh $REMOTE_USER_HOST "export QEMU_FW_FILE=$REMOTE_SRC_DIR/$(basename $QEMU_FW_FILE) \
&& HDD_PATH=~/qemu-data/hdd.qcow2 \
&& cd ${REMOTE_SRC_DIR} && \
HDD_PATH=~/qemu-data/hdd.qcow2 \
DIR=${REMOTE_SRC_DIR} \
INSTALLER_PATH=~/qemu-data/ubuntu-24.04.1-desktop-amd64.iso \
${REMOTE_SRC_DIR}/scripts/ci/qemu-run.sh $1 $2 $3"

else
ssh $REMOTE_USER_HOST "${REMOTE_SRC_DIR}/scripts/ci/qemu-run.sh $1 $2 $3"
ssh $REMOTE_USER_HOST "cd ${REMOTE_SRC_DIR} && \
HDD_PATH=~/qemu-data/hdd.qcow2 \
DIR=${REMOTE_SRC_DIR} \
INSTALLER_PATH=~/qemu-data/ubuntu-24.04.1-desktop-amd64.iso \
${REMOTE_SRC_DIR}/scripts/ci/qemu-run.sh $1 $2 $3"

fi
}

Expand Down

0 comments on commit 9ab33ff

Please sign in to comment.