Skip to content

Commit

Permalink
redo-ifchange regression: if REDO_LOG is not set, assume it's 1.
Browse files Browse the repository at this point in the history
At some point this got broken during a refactoring.  The result was
that redo-ifchange, run from the command line (as opposed to inside a
.do script) would fail to start the log prettifier.
  • Loading branch information
apenwarr committed Mar 2, 2019
1 parent 83bc495 commit 8a97b0c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion redo/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self):
self.VERBOSE = _get_bool('REDO_VERBOSE', '')
self.XTRACE = _get_bool('REDO_XTRACE', '')
self.KEEP_GOING = _get_bool('REDO_KEEP_GOING', '')
self.LOG = _get_int('REDO_LOG', '')
self.LOG = _get_int('REDO_LOG', '1')
self.LOG_INODE = _get('REDO_LOG_INODE', '')
self.COLOR = _get_int('REDO_COLOR', '')
self.PRETTY = _get_int('REDO_PRETTY', '')
Expand Down
2 changes: 1 addition & 1 deletion t/100-args/all.do
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
redo test.args test2.args passfailtest
redo test.args test2.args passfailtest noargs/run
. ../skip-if-minimal-do.sh
2 changes: 1 addition & 1 deletion t/100-args/clean.do
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rm -f passfail *~ .*~
rm -f passfail *~ .*~ */*~ */.*~ noargs/all
1 change: 1 addition & 0 deletions t/100-args/noargs/all.do
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
echo RAN >$3
3 changes: 3 additions & 0 deletions t/100-args/noargs/run.do
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
rm -f all
redo-ifchange # should not default to 'all' since not running from top level
[ ! -e all ] || exit 11

0 comments on commit 8a97b0c

Please sign in to comment.