run: make gem5-shell work even when not on cwd

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-07-14 00:00:01 +00:00
parent 85be87d71c
commit f9fc7aa372
3 changed files with 2 additions and 64 deletions

View File

@@ -7,7 +7,7 @@ root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
set +e
# Setup for quick failures:
# https://stackoverflow.com/questions/4713088/how-to-use-git-bisect/22592593#22592593
timeout 5 "${root_dir}/run" --emulator gem5 --gem5-build-id bisect --quit-after-boot "$@"
timeout 400 "${root_dir}/run" --emulator gem5 --gem5-build-id bisect --quit-after-boot "$@"
if [ $? -ne 124 ]; then
exit 1
fi