RETIRED, Pieces of diskimage-builder that are useful without the full project
Go to file
Andreas Florath 8849712178 Use 'output' function instead of 'echo' for statistics log
In bash the only sensible way of returning a string from functions
or scripts is via stdout.
dib-run-parts not only 'returned' the output of the called scripts but
also some statistics / performance output.
Other parts of the script already used an 'output' function so
the statistics output was adapted to also use this kind of function.

In addition three simple test cases are implemented to check
the basic functions of the script.

As a result the log-output of the dib-run-parts is somewhat cleaner.
It also makes debugging of the called scripts easier.
This change is the precondition for simplification of functions like
diskimage-builder's eval_run_d.

Change-Id: Ie2f0332359a72ca7ab03f94b7573e073df714a97
Signed-off-by: Andreas Florath <andreas@florath.net>
2016-06-02 12:09:43 +10:00
bin Use 'output' function instead of 'echo' for statistics log 2016-06-02 12:09:43 +10:00
tests Use 'output' function instead of 'echo' for statistics log 2016-06-02 12:09:43 +10:00
.gitignore Create a new baremetal element 2014-01-20 23:00:21 +11:00
.gitreview Fix up diskimage-builder references 2014-04-24 21:48:31 +00:00
LICENSE Add missing LICENSE 2014-09-18 20:26:52 -04:00
README.md Add build files so this can actually be packaged 2014-04-25 18:18:23 +00:00
setup.cfg Remove hardcoded version. 2014-08-20 13:39:02 +12:00
setup.py Add build files so this can actually be packaged 2014-04-25 18:18:23 +00:00
tox.ini Use 'output' function instead of 'echo' for statistics log 2016-06-02 12:09:43 +10:00

README.md

Standalone tools related to diskimage-builder

These tools were originally part of the diskimage-builder project, but they have uses outside of that project as well. Because disk space is at a premium in base cloud images, pulling in all of diskimage-builder and its dependencies just to use something like dib-run-parts is not desirable. This project allows consumers to use the tools while pulling in only one small package with few/no additional dependencies.