Skip to content

Commit f2e704d

Browse files
committed
[Tests][Fixed] Avoid interference between GUI and error tests
1 parent 72302ab commit f2e704d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_plot/test_gui.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ def run_test(num, test_dir, project, recipe, keep_project=False, no_board_file=F
251251
recipe(ctx).save_events(cfg)
252252
logging.debug(f'Using `{cfg}` events')
253253
yaml_out = ctx.get_out_path('result.kibot.yaml')
254+
old_lang = os.environ.get('LANG')
254255
try:
255256
os.environ['LANG'] = 'en'
256257
with Xvfb(width=1920, height=1080, colordepth=24):
@@ -264,6 +265,7 @@ def run_test(num, test_dir, project, recipe, keep_project=False, no_board_file=F
264265
f.write(yaml_txt)
265266
with open(yaml_out, 'w') as f:
266267
f.write(yaml_res)
268+
os.environ['LANG'] = old_lang
267269
ctx.compare_txt(text=os.path.abspath(yaml_out), reference=os.path.abspath('tests/GUI/cfg_out/'+yaml_base))
268270
ctx.clean_up(keep_project=keep_project)
269271

0 commit comments

Comments
 (0)