From 2061f0d8b492fff2c8169392d10f8d66692293e8 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Thu, 13 Feb 2020 15:26:35 +0000 Subject: [PATCH] tests: Always create shared VFIO directory from scratch This ensures that any changes to the contents will not affect subsequent tests runs. Signed-off-by: Rob Bradford --- scripts/run_integration_tests.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/scripts/run_integration_tests.sh b/scripts/run_integration_tests.sh index ddd473987..620b24e2d 100755 --- a/scripts/run_integration_tests.sh +++ b/scripts/run_integration_tests.sh @@ -131,12 +131,11 @@ if [ ! -d "$SHARED_DIR" ]; then fi VFIO_DIR="$WORKLOADS_DIR/vfio" -if [ ! -d "$VFIO_DIR" ]; then - mkdir -p $VFIO_DIR - cp $CLEAR_OS_IMAGE $VFIO_DIR - cp $FW $VFIO_DIR - cp $VMLINUX_IMAGE $VFIO_DIR -fi +rm -rf $VFIO_DIR +mkdir -p $VFIO_DIR +cp $CLEAR_OS_IMAGE $VFIO_DIR +cp $FW $VFIO_DIR +cp $VMLINUX_IMAGE $VFIO_DIR # VFIO test network setup. # We reserve a different IP class for it: 172.17.0.0/24.