Meta: Remove existing test directories before copying new ones in

Previously, we would end up with `js-tests/Tests` and `web-tests/Tests`
because the previous directories were already there.
This commit is contained in:
Ali Mohammad Pur 2021-05-04 07:34:20 +04:30 committed by Andreas Kling
parent 415fd4d2ec
commit 8449521064
Notes: sideshowbarker 2024-07-18 18:42:58 +09:00

View file

@ -104,6 +104,7 @@ mkdir -p mnt/home/anon
mkdir -p mnt/home/anon/Desktop mkdir -p mnt/home/anon/Desktop
mkdir -p mnt/home/anon/Downloads mkdir -p mnt/home/anon/Downloads
mkdir -p mnt/home/nona mkdir -p mnt/home/nona
rm -fr mnt/home/anon/js-tests mnt/home/anon/web-tests
cp "$SERENITY_SOURCE_DIR"/README.md mnt/home/anon/ cp "$SERENITY_SOURCE_DIR"/README.md mnt/home/anon/
cp -r "$SERENITY_SOURCE_DIR"/Userland/Libraries/LibJS/Tests mnt/home/anon/js-tests cp -r "$SERENITY_SOURCE_DIR"/Userland/Libraries/LibJS/Tests mnt/home/anon/js-tests
cp -r "$SERENITY_SOURCE_DIR"/Userland/Libraries/LibWeb/Tests mnt/home/anon/web-tests cp -r "$SERENITY_SOURCE_DIR"/Userland/Libraries/LibWeb/Tests mnt/home/anon/web-tests