aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/test_klippy.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/test_klippy.py')
-rw-r--r--scripts/test_klippy.py16
1 files changed, 1 insertions, 15 deletions
diff --git a/scripts/test_klippy.py b/scripts/test_klippy.py
index 93ea2f34..de7ce757 100644
--- a/scripts/test_klippy.py
+++ b/scripts/test_klippy.py
@@ -6,7 +6,6 @@
import sys, os, optparse, logging, subprocess
TEMP_GCODE_FILE = "_test_.gcode"
-TEMP_LOG_FILE = "_test_.log"
TEMP_OUTPUT_FILE = "_test_output"
@@ -109,13 +108,9 @@ class TestCase:
]
for df in dict_fnames:
args += ["-d", df]
- if not self.verbose:
- args += ["-l", TEMP_LOG_FILE]
res = subprocess.call(args)
is_fail = (should_fail and not res) or (not should_fail and res)
if is_fail:
- if not self.verbose:
- self.show_log()
if should_fail:
raise error("Test failed to raise an error")
raise error("Error during test")
@@ -125,10 +120,7 @@ class TestCase:
for fname in os.listdir(self.tempdir):
if fname.startswith(TEMP_OUTPUT_FILE):
os.unlink(fname)
- if not self.verbose:
- os.unlink(TEMP_LOG_FILE)
- else:
- sys.stderr.write("\n")
+ sys.stderr.write("\n")
if gcode_is_temp:
os.unlink(gcode_fname)
@@ -142,12 +134,6 @@ class TestCase:
return "internal error"
return "success"
- def show_log(self):
- f = open(TEMP_LOG_FILE, "r")
- data = f.read()
- f.close()
- sys.stdout.write(data)
-
######################################################################
# Startup