f824262aeb025c56f7692f171b486425bfe25d74
[releng/builder.git] / jjb / integration / integration-cleanup-workspace.sh
1 #!/bin/bash
2 echo "Cleaning up the workspace..."
3
4 # Leftover files from previous runs could be wrongly copied as results.
5 # Keep the cloned integration/test repository!
6 for file_or_dir in *
7 # FIXME: Make this compatible with multipatch and other possible build&run jobs.
8 do
9     if [ "$file_or_dir" != "test" ]; then
10         rm -vrf "$file_or_dir"
11     fi
12 done