changeset 3662:0661b2aac167

tests (e2e): print revision used in `run_e2e`
author Goffi <goffi@goffi.org>
date Wed, 08 Sep 2021 17:57:28 +0200
parents e584ce33ef1d
children 2cbecbb52b72 fc24e611c9aa
files tests/e2e/run_e2e.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/e2e/run_e2e.py	Thu Jul 29 22:51:01 2021 +0200
+++ b/tests/e2e/run_e2e.py	Wed Sep 08 17:57:28 2021 +0200
@@ -18,7 +18,7 @@
 
 """Run end-to-end tests in appropriate Docker environment"""
 
-import sys
+import sys, os
 from pathlib import Path
 import tempfile
 from textwrap import dedent
@@ -128,6 +128,8 @@
             f.write(log_raw)
 
 def use_e2e_env():
+    rev = os.getenv("DOCKER_LIBERVIA_REV", "dev")
+    print(f"Running tests for Libervia {rev}")
     visual = get_opt(OPT_VISUAL)
     keep_containers = get_opt(OPT_KEEP_CONTAINERS)
     keep_profiles = get_opt(OPT_KEEP_PROFILES)