aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/pal.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-03-26 11:02:54 +0200
committerTibor Frank <tifrank@cisco.com>2018-03-26 11:02:54 +0200
commit3458e725729098a6c10f68ec4a05d7256984bcdc (patch)
tree8ddadaf18216bf781e7c4e5bd908df2948a02e58 /resources/tools/presentation/pal.py
parentaaa58d348c375f80e65dfdf62a679dd0cbac4411 (diff)
CSIT-919: Jenkins job
Change-Id: I8ed4a8e135ebbebc7799a633872a50293eb410af Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/pal.py')
-rw-r--r--resources/tools/presentation/pal.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/resources/tools/presentation/pal.py b/resources/tools/presentation/pal.py
index 85b7bbc370..98642c898c 100644
--- a/resources/tools/presentation/pal.py
+++ b/resources/tools/presentation/pal.py
@@ -86,7 +86,7 @@ def main():
logging.critical("Finished with error.")
return 1
- ret_code = 1
+ ret_code = 0
try:
env = Environment(spec.environment, args.force)
env.set_environment()
@@ -109,9 +109,8 @@ def main():
if spec.output["output"] == "report":
generate_report(args.release, spec)
logging.info("Successfully finished.")
- ret_code = 0
elif spec.output["output"] == "CPTA":
- ret_code = generate_cpta(spec, data)
+ sys.stdout.write(generate_cpta(spec, data))
logging.info("Successfully finished.")
else:
logging.critical("The output '{0}' is not supported.".