Skip to content
Snippets Groups Projects
Commit 4226a6d2 authored by Michiel Brentjens's avatar Michiel Brentjens
Browse files

Task #8389 check_output expects a list of arguments

In case of startTBB.sh it was given only a string, which was treated
as a list of characters, leading to a rather funny looking log line with
lots of spaces. This should be solved now.
parent 93c03424
No related branches found
No related tags found
No related merge requests found
...@@ -2810,7 +2810,7 @@ def pps_tune_main(argv): ...@@ -2810,7 +2810,7 @@ def pps_tune_main(argv):
start_tbb_sh = os.path.join('/opt', 'lofar', 'sbin', 'startTBB.sh') start_tbb_sh = os.path.join('/opt', 'lofar', 'sbin', 'startTBB.sh')
if os.path.exists(start_tbb_sh): if os.path.exists(start_tbb_sh):
logging.info('Starting TBBs...') logging.info('Starting TBBs...')
start_tbb_output = check_output(start_tbb_sh, timeout_s=60.0) start_tbb_output = check_output([start_tbb_sh], timeout_s=60.0)
logging.debug('startTBB.sh output:\n%s', start_tbb_output) logging.debug('startTBB.sh output:\n%s', start_tbb_output)
else: else:
logging.warn('''Will not start TBBs: %s not found. logging.warn('''Will not start TBBs: %s not found.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment