runtest-junitxml: Disable guile warnings about deprecated features

This commit is contained in:
Harald Welte 2017-08-20 11:38:18 +02:00
parent e960bb63ef
commit fb54abb5db
1 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,9 @@ def start_testcase(directory, testcase, timeout=0):
signal.signal(signal.SIGALRM, signal_handler)
signal.alarm(timeout)
before = time.time()
p = Popen([GUILE, '-L', directory, '-c', cmd], stdout=PIPE, stderr=PIPE)
my_env = os.environ
my_env["GUILE_WARN_DEPRECATED"] = "no"
p = Popen([GUILE, '-L', directory, '-c', cmd], env=my_env, stdout=PIPE, stderr=PIPE)
try:
(tc_stdout, tc_stderr) = p.communicate()
returncode = p.returncode