aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-06-16 20:42:13 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-06-17 09:55:30 -0400
commit6841f0b5a8d2245aaf7d53c5290b12245b19c176 (patch)
treeafa3888614c1dd2f15e6df788699ddf1af3ba47b
parent9972db5a2aee76608600c435e0d148ea56c4739b (diff)
downloadkutter-6841f0b5a8d2245aaf7d53c5290b12245b19c176.tar.gz
kutter-6841f0b5a8d2245aaf7d53c5290b12245b19c176.tar.xz
kutter-6841f0b5a8d2245aaf7d53c5290b12245b19c176.zip
test_klippy: Use verbose output when running klippy
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--scripts/test_klippy.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/test_klippy.py b/scripts/test_klippy.py
index f70095b5..8aebd9b2 100644
--- a/scripts/test_klippy.py
+++ b/scripts/test_klippy.py
@@ -57,7 +57,7 @@ class TestCase:
elif parts[0] == "SHOULD_FAIL":
should_fail = True
else:
- gcode.append(line)
+ gcode.append(line.strip())
f.close()
if not multi_tests:
self.launch_test(config_fname, dict_fname,
@@ -69,7 +69,7 @@ class TestCase:
gcode_fname = self.relpath("_test_.gcode", 'temp')
gcode_is_temp = True
f = open(gcode_fname, 'wb')
- f.write('\n'.join(gcode))
+ f.write('\n'.join(gcode + ['']))
f.close()
elif gcode:
raise error("Can't specify both a gcode file and gcode commands")
@@ -81,13 +81,13 @@ class TestCase:
sys.stderr.write("\n Starting %s (%s)\n" % (
self.fname, os.path.basename(config_fname)))
args = [sys.executable, './klippy/klippy.py', config_fname,
- '-i', gcode_fname, '-o', '/dev/null',
+ '-i', gcode_fname, '-o', '/dev/null', '-v',
'-d', dict_fname
]
res = subprocess.call(args)
if should_fail:
if not res:
- raise error("Test failed to raise and error")
+ raise error("Test failed to raise an error")
else:
if res:
raise error("Error during test")