Skip to content

Commit ff1b280

Browse files
committed
测试 CI
1 parent 3d4602f commit ff1b280

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/test-qemu.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,17 @@ jobs:
4747
img_name="qemu-${{ matrix.arch }}"
4848
sed -i 's|^kernel_path[[:space:]]*=.*|kernel_path = "/tmp/axvisor/'"$img"'/'"$img_name"'"|' "$config"
4949
echo "Updated kernel_path in $config"
50+
if [ -f "/tmp/axvisor/$img/rootfs.img" ]; then
51+
ROOTFS_DIR="/tmp/axvisor/$img"
52+
echo "ROOTFS_DIR=$ROOTFS_DIR" >> $GITHUB_ENV
53+
echo "Found rootfs.img at /tmp/axvisor/$img/, exported ROOTFS_DIR=$ROOTFS_DIR"
54+
fi
5055
done
5156
5257
- name: Run tests
5358
run: |
59+
export ROOTFS_DIR="${{ env.ROOTFS_DIR }}"
60+
echo $ROOTFS_DIR
5461
export RUST_LOG=debug
5562
cargo xtask qemu \
5663
--build-config configs/board/qemu-${{ matrix.arch }}.toml \

0 commit comments

Comments
 (0)