bbbd9b6ec6
In the discussion about renaming the `tests/acceptance` [1], the conclusion was that the folders inside `tests` are related to the framework running the tests and not directly related to the type of the tests. This changes the folder to `tests/avocado` and adjusts the MAKEFILE, the CI related files and the documentation. [1] https://lists.gnu.org/archive/html/qemu-devel/2021-05/msg06553.html Reviewed-by: Niek Linnenbank <nieklinnenbank@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Willian Rampazzo <willianr@redhat.com> Message-Id: <20211105155354.154864-3-willianr@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
31 lines
464 B
Bash
31 lines
464 B
Bash
#!/bin/bash
|
|
|
|
function print_usage()
|
|
{
|
|
if [ -n "$2" ]; then
|
|
echo "Error: $2"
|
|
echo
|
|
fi
|
|
echo "Usage: $1 <scratch dir>"
|
|
}
|
|
|
|
scratch_dir=$1
|
|
if [ -z "$scratch_dir" ]; then
|
|
print_usage "$0" 'Scratch dir not given' >&2
|
|
exit 1
|
|
fi
|
|
|
|
cd "$scratch_dir/share" || exit 1
|
|
|
|
mps=(mnt*)
|
|
mp_i=0
|
|
for mp in "${mps[@]}"; do
|
|
mp_i=$((mp_i + 1))
|
|
printf "Unmounting %i/%i...\r" "$mp_i" "${#mps[@]}"
|
|
|
|
sudo umount -R "$mp"
|
|
done
|
|
echo
|
|
|
|
echo 'Done.'
|