git://git.onelab.eu
/
bootmanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c70e73b
)
use sysexec_noerr for error handling
author
S.Çağlar Onur
<caglar@cs.princeton.edu>
Thu, 9 Dec 2010 03:26:07 +0000
(22:26 -0500)
committer
S.Çağlar Onur
<caglar@cs.princeton.edu>
Thu, 9 Dec 2010 03:26:07 +0000
(22:26 -0500)
source/BootManager.py
patch
|
blob
|
history
diff --git
a/source/BootManager.py
b/source/BootManager.py
index
9ed03ed
..
29497fe
100755
(executable)
--- a/
source/BootManager.py
+++ b/
source/BootManager.py
@@
-149,7
+149,7
@@
class log:
# NOTE: for code-reuse, evoke the bash function 'upload_logs';
# by adding --login, bash reads .bash_profile before execution.
# Also, never fail, since this is an optional feature.
# NOTE: for code-reuse, evoke the bash function 'upload_logs';
# by adding --login, bash reads .bash_profile before execution.
# Also, never fail, since this is an optional feature.
- utils.sysexec
( """bash --login -c "upload_logs %s || /bin/true
" """ % extra_file, self)
+ utils.sysexec
_noerr( """bash --login -c "upload_logs %s
" """ % extra_file, self)
##############################
##############################
@@
-369,7
+369,7
@@
def main(argv):
LOG= log( BM_NODE_LOG )
# NOTE: assume CWD is BM's source directory, but never fail
LOG= log( BM_NODE_LOG )
# NOTE: assume CWD is BM's source directory, but never fail
- utils.sysexec
("./setup_bash_history_scripts.sh || /bin/true
", LOG)
+ utils.sysexec
_noerr("./setup_bash_history_scripts.sh
", LOG)
LOG.LogEntry( "BootManager started at: %s" % \
time.strftime("%a, %d %b %Y %H:%M:%S +0000", time.gmtime()) )
LOG.LogEntry( "BootManager started at: %s" % \
time.strftime("%a, %d %b %Y %H:%M:%S +0000", time.gmtime()) )