Revision 36117c2b
ID | 36117c2bde4a9ec952b9533b30f8bc3978414a55 |
Parent | f2a6fc9e |
Child | b1206984 |
Modify utils.RunCmd to write output to file
Currently we launch processes via the shell in a few places only to
redirect standard output and error to a log file ("&> $file"). It is
better to do such redirection from within RunCmd itself.
This patch splits RunCmd in two parts, the setup and the execution part,
the latter being implemented in two different functions depending on
whether we write to a file or not.
We also update the unittests with this new case.
Reviewed-by: imsnah
Files
- added
- modified
- copied
- renamed
- deleted