Skip to content

Commit 6796c53

Browse files
committed
remove stdbuf from tests, unless speicfy STDBUF=1
1 parent a60d628 commit 6796c53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

run_test_pytorch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ source ~/torch/install/bin/torch-activate
1111

1212
if [[ x$RUNGDB != x ]]; then {
1313
rungdb.sh python $(which py.test) test/test_pytorch.py $*
14-
} elif [[ x$STDBUF != x ]]; {
14+
} elif [[ x$STDBUF != x ]]; then {
1515
stdbuf --output=L py.test -sv test/test_pytorch.py $* | grep --line-buffered -v 'seconds =============' | tee test_outputs/test_pytorch_output.txt
1616
} else {
1717
py.test -sv test/test_pytorch.py $*

run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if [[ ! -f data/mnist/train-labels-idx1-ubyte ]]; then {
2525

2626
if [[ x$RUNGDB != x ]]; then {
2727
rungdb.sh python $(which py.test) test/test* $*
28-
} elif [[ x$STDBUF != x ]]; {
28+
} elif [[ x$STDBUF != x ]]; then {
2929
stdbuf --output=L py.test -sv test/test* $* | grep --line-buffered -v 'seconds =============' | tee test_outputs/tests_output.txt
3030
} else {
3131
py.test -sv test/test*

0 commit comments

Comments
 (0)