Skip to content

Commit fa94967

Browse files
anirudhrblikebreath
authored andcommitted
scripts: build mshv feature too for dbus, fw_cfg & ivshmem tests
The aarch64 dbus, fw_cfg & ivshmem tests don't build the mshv feature causing them to fail when run on MSHV. Fix by building the mshv feature too just like the x86 version of the script does. Signed-off-by: Anirudh Rayabharam <anrayabh@microsoft.com>
1 parent 77ce3f6 commit fa94967

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/run_integration_tests_aarch64.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ fi
285285

286286
# Run tests on dbus_api
287287
if [ $RES -eq 0 ]; then
288-
cargo build --features "dbus_api" --all --release --target "$BUILD_TARGET"
288+
cargo build --features "mshv,dbus_api" --all --release --target "$BUILD_TARGET"
289289
export RUST_BACKTRACE=1
290290
# integration tests now do not reply on build feature "dbus_api"
291291
time cargo nextest run $test_features --retries 3 --no-fail-fast --no-tests=pass --test-threads=$(($(nproc) / 4)) "dbus_api::$test_filter" -- ${test_binary_args[*]}
@@ -294,14 +294,14 @@ fi
294294

295295
# Run tests on fw_cfg
296296
if [ $RES -eq 0 ]; then
297-
cargo build --features "fw_cfg" --all --release --target "$BUILD_TARGET"
297+
cargo build --features "mshv,fw_cfg" --all --release --target "$BUILD_TARGET"
298298
export RUST_BACKTRACE=1
299299
time cargo nextest run $test_features --retries 3 --no-fail-fast --no-tests=pass --test-threads=$(($(nproc) / 4)) "fw_cfg::$test_filter" -- ${test_binary_args[*]}
300300
RES=$?
301301
fi
302302

303303
if [ $RES -eq 0 ]; then
304-
cargo build --features "ivshmem" --all --release --target "$BUILD_TARGET"
304+
cargo build --features "mshv,ivshmem" --all --release --target "$BUILD_TARGET"
305305
export RUST_BACKTRACE=1
306306
time cargo nextest run $test_features --retries 3 --no-fail-fast --no-tests=pass --test-threads=$(($(nproc) / 4)) "ivshmem::$test_filter" -- ${test_binary_args[*]}
307307

0 commit comments

Comments
 (0)