diff --git a/test/integration/wrapper.py b/test/integration/wrapper.py index 47138988..8924bf93 100755 --- a/test/integration/wrapper.py +++ b/test/integration/wrapper.py @@ -40,7 +40,11 @@ pid = os.getpid() rand = random.randint(0, 1000) value = f'{pid}-{rand}' for var in ['GTEST_OUTPUT']: - if var in os.environ: + if test == '': + # Avoid outputting xml during test discovery + # Otherwise jenkins counts every test twice + del os.environ[var] + elif var in os.environ: os.environ[var] = os.environ[var].replace('XXX', value) binary = os.environ['INTTEST_BIN']