mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
CI: handle the case where junit is not outputted
though maybe github actions should also use one
This commit is contained in:
@@ -40,12 +40,13 @@ pid = os.getpid()
|
||||
rand = random.randint(0, 1000)
|
||||
value = f'{pid}-{rand}'
|
||||
for var in ['GTEST_OUTPUT']:
|
||||
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)
|
||||
if var in os.environ:
|
||||
if test == '':
|
||||
# Avoid outputting xml during test discovery
|
||||
# Otherwise jenkins counts every test twice
|
||||
del os.environ[var]
|
||||
else:
|
||||
os.environ[var] = os.environ[var].replace('XXX', value)
|
||||
|
||||
binary = os.environ['INTTEST_BIN']
|
||||
sys.argv[0] = binary
|
||||
|
||||
Reference in New Issue
Block a user