File tree 2 files changed +12
-5
lines changed
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,18 @@ all: count tests test_report
34
34
35
35
$(TEST_LIST ) : | virtualenv $(TEST_CONFIG ) $(BUILD_DIR ) $(HARDWARE_DIR )
36
36
37
- tests : $(TEST_LIST )
37
+ tests : showtestlist $(TEST_LIST )
38
+
39
+ showtestlist :
40
+ @echo " -------------------------------- test list:"
41
+ @echo $(TEST_LIST )
42
+ @echo " --------------------------------"
38
43
39
44
$(TEST_LIST ) : LOCAL_BUILD_DIR=$(BUILD_DIR ) /$(notdir $@ )
40
45
41
46
$(TEST_LIST ) :
42
- @echo Running $(words $(TEST_LIST ) ) tests
47
+ @echo " --------------------------------"
48
+ @echo " Running test '$@ ' of $( words $( TEST_LIST) ) tests"
43
49
$(SILENT ) mkdir -p $(LOCAL_BUILD_DIR )
44
50
ifneq ("$(NO_BUILD ) ","1")
45
51
@test -n "$(ARDUINO_IDE_PATH)" || (echo "Please export ARDUINO_IDE_PATH" && exit 1)
@@ -85,7 +91,7 @@ ifneq ("$(NO_RUN)","1")
85
91
--port $(UPLOAD_PORT) \
86
92
--baud $(UPLOAD_BAUD) \
87
93
read_flash_status # reset
88
- @ source $(BS_DIR)/virtualenv/bin/activate && \
94
+ $(SILENT) source $(BS_DIR)/virtualenv/bin/activate && \
89
95
$(PYTHON) $(BS_DIR)/runner.py \
90
96
$(RUNNER_DEBUG_FLAG) \
91
97
-p $(UPLOAD_PORT) \
Original file line number Diff line number Diff line change 29
29
import mock_decorators
30
30
31
31
debug = False
32
+ #debug = True
32
33
33
34
sys .path .append (os .path .abspath (__file__ ))
34
35
@@ -126,7 +127,7 @@ def run_tests(self):
126
127
debug_print ('test output was:' )
127
128
debug_print (test_output .getvalue ())
128
129
if result == BSTestRunner .SUCCESS :
129
- test_case .stdout = test_output .getvalue ()
130
+ test_case .stdout = filter ( lambda c : ord ( c ) < 128 , test_output .getvalue () )
130
131
print ('test "{}" passed' .format (name ))
131
132
else :
132
133
print ('test "{}" failed' .format (name ))
@@ -269,7 +270,7 @@ def main():
269
270
ts = run_tests (sp , name , mocks , env_vars )
270
271
if args .output :
271
272
with open (args .output , "w" ) as f :
272
- TestSuite .to_file (f , [ts ])
273
+ TestSuite .to_file (f , [ts ], encoding = 'raw_unicode_escape' )
273
274
return 0
274
275
275
276
if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments