summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruce Forstall <brucefo@microsoft.com>2018-08-09 14:01:34 -0700
committerGitHub <noreply@github.com>2018-08-09 14:01:34 -0700
commita7dbd1fd87364d7cd7cd48170254bd9d5b4a7feb (patch)
tree69a0ba3a96dadf1564b2561641548bec0281aaee /tests
parent40ffce5bb99c77fafe588583ef9a6c1f1c8db90b (diff)
parent5ceef2eccb16222ac8c1c64c3254ca7db3d287b9 (diff)
downloadcoreclr-a7dbd1fd87364d7cd7cd48170254bd9d5b4a7feb.tar.gz
coreclr-a7dbd1fd87364d7cd7cd48170254bd9d5b4a7feb.tar.bz2
coreclr-a7dbd1fd87364d7cd7cd48170254bd9d5b4a7feb.zip
Merge pull request #19385 from BruceForstall/WhichCoreFxCommit
Print out the checked out commit hash
Diffstat (limited to 'tests')
-rw-r--r--tests/scripts/run-corefx-tests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/scripts/run-corefx-tests.py b/tests/scripts/run-corefx-tests.py
index cce760918e..a569aadd4c 100644
--- a/tests/scripts/run-corefx-tests.py
+++ b/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.