tests: Use "-f" on directory rm commands

When running the script from an interactive environment there are always
some files inside the git directory that rm prompts to delete so instead
pass "-f" to avoid that.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2019-08-16 14:35:41 +01:00 committed by Sebastien Boeuf
parent 7245cf7c5e
commit 71154d8362

View File

@ -74,7 +74,7 @@ if [ ! -f "$VMLINUX_IMAGE" ]; then
cp vmlinux $VMLINUX_IMAGE
cp arch/x86/boot/bzImage $BZIMAGE_IMAGE
popd
rm -r $LINUX_CUSTOM_DIR
rm -rf $LINUX_CUSTOM_DIR
popd
fi
@ -88,7 +88,7 @@ if [ ! -f "$VIRTIOFSD" ]; then
make virtiofsd -j `nproc`
cp virtiofsd $VIRTIOFSD
popd
rm -r $VIRTIOFSD_DIR
rm -rf $VIRTIOFSD_DIR
sudo setcap cap_sys_admin+epi "virtiofsd"
popd
fi