Improve return codes
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 13 May 2018 15:18:59 +0000 (17:18 +0200)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 13 May 2018 15:18:59 +0000 (17:18 +0200)
commit61b44c10759477593d6706f5e4ea4acdc7ba393a
treec199fb79b9adfbad4ab689d28e2442ca42dcba72
parentd1b30f1a4541431bad1053788f36e64ad63fd32c
Improve return codes

This commit adds different return codes for erros in recipe parsing,
test errors and other errors.

We now return 1 when the test fails, 2 when the recipe parsing fails, 3
on other erros and 0 when everything works fine.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
nitsi.in
src/nitsi/recipe.py
src/nitsi/test.py