From: Bobby R. Bruce Date: Mon, 2 Nov 2020 21:09:47 +0000 (-0800) Subject: util: Updated compiler-test.sh for Python3 X-Git-Tag: develop-gem5-snapshot~501 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aec2ff94009c38bdbaf4e690479106fdf29cc04b;p=gem5.git util: Updated compiler-test.sh for Python3 In our Ubuntu 18.04 Docker Images, we require gem5 to be build using `/usr/bin/env python3 /usr/bin/scons ...`. Change-Id: I4dd3bca1602247575769e6c250337c3ee4a40780 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36884 Tested-by: kokoro Reviewed-by: Hoa Nguyen Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power --- diff --git a/util/compiler-tests.sh b/util/compiler-tests.sh index ccb243706..f8d4f5d0d 100755 --- a/util/compiler-tests.sh +++ b/util/compiler-tests.sh @@ -116,7 +116,8 @@ for compiler in ${images[@]}; do # Build with container { docker run --rm -v "${gem5_root}":"/gem5" -u $UID:$GID \ - -w /gem5 $repo_name scons "${build_out}" "${build_args}" + -w /gem5 $repo_name /usr/bin/env python3 /usr/bin/scons \ + "${build_out}" "${build_args}" }>"${build_stdout}" 2>"${build_stderr}" result=$?