From: Bruce Forstall Date: Thu, 9 Aug 2018 18:52:56 +0000 (-0700) Subject: Print out the checked out commit hash X-Git-Tag: submit/tizen/20210909.063632~11030^2~4176^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b0314187e3788ee69d079c068c688cae25bfebd3;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Print out the checked out commit hash This is useful to see exactly which version of CoreFX you are testing against. Commit migrated from https://github.com/dotnet/coreclr/commit/5ceef2eccb16222ac8c1c64c3254ca7db3d287b9 --- diff --git a/src/coreclr/tests/scripts/run-corefx-tests.py b/src/coreclr/tests/scripts/run-corefx-tests.py index cce7609..a569aad 100644 --- a/src/coreclr/tests/scripts/run-corefx-tests.py +++ b/src/coreclr/tests/scripts/run-corefx-tests.py @@ -267,6 +267,15 @@ def main(args): if returncode != 0: sys.exit(1) + # Print the currently checked out commit hash. Mostly useful if you just checked + # out HEAD, which is the default. + + command = "git rev-parse HEAD" + log(command) + returncode = 0 if testing else os.system(command) + if returncode != 0: + sys.exit(1) + # On Unix, coreFx build.sh requires HOME to be set, and it isn't by default # under our CI system, so set it now.