X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fpal.py;h=98642c898ca05ef10ca195958dcd5b5cd84cbe4c;hp=85b7bbc3709cdf8d42abd4254eb0d679c1149573;hb=9821b058c2f4901a9b4d66667018da214513ab28;hpb=efdcf6470f6e15dcc918c70e5a61d10e10653f1e 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.".