summaryrefslogtreecommitdiff
path: root/test/end-to-end/with_serve_test_runner.py
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-12-05 17:12:57 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-12-07 10:00:12 +0100
commit7c40df5210312b35f39f8f7188871ed4ef917f4e (patch)
treef097277da3c764910e7522bdd498c8020d3d1bd9 /test/end-to-end/with_serve_test_runner.py
parent17ec110944f812830bb3eaee97d8b6bd2f1fcd45 (diff)
downloadjustbuild-7c40df5210312b35f39f8f7188871ed4ef917f4e.tar.gz
test rule with_serve: Pass also the commit trees to the test script
Diffstat (limited to 'test/end-to-end/with_serve_test_runner.py')
-rwxr-xr-xtest/end-to-end/with_serve_test_runner.py5
1 files changed, 5 insertions, 0 deletions
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