tests: cleanup m5out directly in weekly
The weekly test script was implicitly assuming that no m5out directory existed in the folder where the script was run. However, if a prior test ran and failed, it would not clean up its m5out directory, causing the weekly tests to fail. This commit resolves this by removing the m5out directory before trying to run any tests in the weekly script. Moreover, we also update the weekly script to explicitly remove this m5out directory at the end of the script. Change-Id: If10c59034528e171cc2c5dacb928b3a81d6b8c50 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/67198 Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu> Maintainer: Bobby Bruce <bbruce@ucdavis.edu> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Matt Sinclair
parent
8a9a629bdb
commit
b440355cbc
@@ -70,13 +70,14 @@ mkdir -p tests/testing-results
|
||||
|
||||
# GPU weekly tests start here
|
||||
# before pulling gem5 resources, make sure it doesn't exist already
|
||||
docker run --rm --volume "${gem5_root}":"${gem5_root}" -w \
|
||||
docker run -u $UID:$GID --rm --volume "${gem5_root}":"${gem5_root}" -w \
|
||||
"${gem5_root}" --memory="${docker_mem_limit}" \
|
||||
gcr.io/gem5-test/gcn-gpu:${tag} bash -c \
|
||||
"rm -rf ${gem5_root}/gem5-resources"
|
||||
# delete Pannotia datasets and output files in case a failed regression run left
|
||||
# them around
|
||||
rm -f coAuthorsDBLP.graph 1k_128k.gr result.out
|
||||
|
||||
# delete m5out, Pannotia datasets, and output files in case a failed regression
|
||||
# run left them around
|
||||
rm -rf ${gem5_root}/m5out coAuthorsDBLP.graph 1k_128k.gr result.out
|
||||
|
||||
# Pull gem5 resources to the root of the gem5 directory -- currently the
|
||||
# pre-built binares for LULESH are out-of-date and won't run correctly with
|
||||
@@ -383,5 +384,8 @@ docker run --rm --volume "${gem5_root}":"${gem5_root}" -w \
|
||||
"${gem5_root}" --memory="${docker_mem_limit}" hacc-test-weekly bash -c \
|
||||
"rm -rf ${gem5_root}/gem5-resources"
|
||||
|
||||
# Delete the gem5 m5out folder we created
|
||||
rm -rf ${gem5_root}/m5out
|
||||
|
||||
# delete Pannotia datasets we downloaded and output files it created
|
||||
rm -f coAuthorsDBLP.graph 1k_128k.gr result.out
|
||||
|
||||
Reference in New Issue
Block a user