diff options
-rw-r--r-- | test/end-to-end/RULES | 3 | ||||
-rwxr-xr-x | test/end-to-end/with_serve_test_runner.py | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test/end-to-end/RULES b/test/end-to-end/RULES index 84e771f5..2146d1ac 100644 --- a/test/end-to-end/RULES +++ b/test/end-to-end/RULES @@ -251,7 +251,8 @@ , "repos": [ "The trees, one per entry, that the just serve instance should have" , "available. The respective commits will be generated and passed to the" - , "test script as COMMIT_0, COMMIT_1, etc." + , "test script as COMMIT_0, COMMIT_1, etc., while their respective root" + , "tree identifiers are passed to the test script as TREE_0, TREE_1, etc." ] } , "config_doc": diff --git a/test/end-to-end/with_serve_test_runner.py b/test/end-to-end/with_serve_test_runner.py index 25723a2c..b76aefd9 100755 --- a/test/end-to-end/with_serve_test_runner.py +++ b/test/end-to-end/with_serve_test_runner.py @@ -190,6 +190,11 @@ for repo in os.listdir("data"): stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, cwd=target).stdout.decode('utf-8').strip() + repos_env["TREE_%d" % count] = subprocess.run( + ["git", "log", "-n", "1", "--format=%T"], + stdout=subprocess.PIPE, + stderr=subprocess.DEVNULL, + cwd=target).stdout.decode('utf-8').strip() # increase counter count += 1 |