redo-ifchange regression: if REDO_LOG is not set, assume it's 1.
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.
This commit is contained in:
parent
83bc49512f
commit
8a97b0cb2c
5 changed files with 7 additions and 3 deletions
|
|
@ -35,7 +35,7 @@ class Env(object):
|
||||||
self.VERBOSE = _get_bool('REDO_VERBOSE', '')
|
self.VERBOSE = _get_bool('REDO_VERBOSE', '')
|
||||||
self.XTRACE = _get_bool('REDO_XTRACE', '')
|
self.XTRACE = _get_bool('REDO_XTRACE', '')
|
||||||
self.KEEP_GOING = _get_bool('REDO_KEEP_GOING', '')
|
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.LOG_INODE = _get('REDO_LOG_INODE', '')
|
||||||
self.COLOR = _get_int('REDO_COLOR', '')
|
self.COLOR = _get_int('REDO_COLOR', '')
|
||||||
self.PRETTY = _get_int('REDO_PRETTY', '')
|
self.PRETTY = _get_int('REDO_PRETTY', '')
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
redo test.args test2.args passfailtest
|
redo test.args test2.args passfailtest noargs/run
|
||||||
. ../skip-if-minimal-do.sh
|
. ../skip-if-minimal-do.sh
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
rm -f passfail *~ .*~
|
rm -f passfail *~ .*~ */*~ */.*~ noargs/all
|
||||||
|
|
|
||||||
1
t/100-args/noargs/all.do
Normal file
1
t/100-args/noargs/all.do
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
echo RAN >$3
|
||||||
3
t/100-args/noargs/run.do
Normal file
3
t/100-args/noargs/run.do
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
rm -f all
|
||||||
|
redo-ifchange # should not default to 'all' since not running from top level
|
||||||
|
[ ! -e all ] || exit 11
|
||||||
Loading…
Add table
Add a link
Reference in a new issue