From 0cba12cf30f9d10523d28aae18fd78adaa44c804 Mon Sep 17 00:00:00 2001 From: Bertho Stultiens Date: Sat, 11 Jan 2025 21:08:40 +0100 Subject: [PATCH] Add missing backslash. --- tests/motion-logger/basic/test-ui.py | 2 +- tests/trajectory-planner/circular-arcs/run_all_tests.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/motion-logger/basic/test-ui.py b/tests/motion-logger/basic/test-ui.py index 4ab695eef76..d1135170f67 100755 --- a/tests/motion-logger/basic/test-ui.py +++ b/tests/motion-logger/basic/test-ui.py @@ -64,7 +64,7 @@ def end_log(logfile_name): for ngc in glob.glob('*.ngc'): if ngc == 'reset.ngc': continue - m = re.match('(.*)\.ngc', ngc) + m = re.match('(.*)\\.ngc', ngc) basename = m.group(1) c.program_open('reset.ngc') diff --git a/tests/trajectory-planner/circular-arcs/run_all_tests.py b/tests/trajectory-planner/circular-arcs/run_all_tests.py index 79a617a6f77..e9bea590341 100644 --- a/tests/trajectory-planner/circular-arcs/run_all_tests.py +++ b/tests/trajectory-planner/circular-arcs/run_all_tests.py @@ -98,7 +98,7 @@ def axis_open_program(t,f): e.set_mode(linuxcnc.MODE_AUTO) sleep(1) for f in test_files: - if re.search('\.ngc$',f) is not None: + if re.search('\\.ngc$',f) is not None: print("Loading program {0}".format(f)) e.set_mode(linuxcnc.MODE_AUTO) sleep(1)