From 80d8d90087c63d4764dda384504d974f0d7dd6ed Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Wed, 11 Dec 2019 11:54:14 +0100 Subject: [PATCH] set lang to C for test --- src/peerinfo-tool/test_gnunet_peerinfo.py.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/peerinfo-tool/test_gnunet_peerinfo.py.in b/src/peerinfo-tool/test_gnunet_peerinfo.py.in index 9a87d3649..e350a5beb 100755 --- a/src/peerinfo-tool/test_gnunet_peerinfo.py.in +++ b/src/peerinfo-tool/test_gnunet_peerinfo.py.in @@ -32,6 +32,10 @@ if gnunet_pyexpect_dir not in sys.path: from gnunet_pyexpect import pexpect +#save LANG and set it to C +mylang = os.environ['LANG'] +os.environ['LANG'] = 'en' + if os.name == 'posix': peerinfo = './gnunet-peerinfo' gnunetarm = 'gnunet-arm' @@ -134,3 +138,5 @@ finally: ) else: shutil.rmtree("/tmp/gnunet-test-peerinfo", True) + #Reset LANG + os.environ['LANG'] = mylang -- 2.25.1