Skip to content

Commit 032505d

Browse files
unittest.sh: show output while testing
1 parent b93f1c0 commit 032505d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/unittest.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,15 @@ result = unittest.main() ; sys.exit(0 if result.wasSuccessful() else 1) "
3535
else
3636
cleanname=$(echo "$file" | sed "s#/#_#g")
3737
testlog=/tmp/"$cleanname".log
38+
echo "$test logging to $testlog"
3839
mpremote.py exec "import sys ; sys.path.append('lib')
3940
$(cat $file)
4041
result = unittest.main()
4142
if result.wasSuccessful():
4243
print('TEST WAS A SUCCESS')
4344
else:
4445
print('TEST WAS A FAILURE')
45-
" > "$testlog"
46+
" | tee "$testlog"
4647
grep "TEST WAS A SUCCESS" "$testlog"
4748
result=$?
4849
fi

0 commit comments

Comments
 (0)