diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-07-08 11:13:09 +0000 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-07-08 13:47:44 +0200 |
commit | 9ae92629c769cea075dcdb5be6769bf23470423f (patch) | |
tree | 966c223fce4e036d7797adadbbd30cf7fec473ab /bin/reproducible_common.py | |
parent | 0276739246a01b782129494a3bc07603bdbbc253 (diff) | |
download | jenkins.debian.net-9ae92629c769cea075dcdb5be6769bf23470423f.tar.xz |
reproducible: common,html_packages: add a --ignore-missing-files, to suppress those warnings and be able to test stuff outside jenkins where i don't have all the log files
Diffstat (limited to 'bin/reproducible_common.py')
-rwxr-xr-x | bin/reproducible_common.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py index eca91409..a22e7402 100755 --- a/bin/reproducible_common.py +++ b/bin/reproducible_common.py @@ -67,6 +67,8 @@ parser = argparse.ArgumentParser() group = parser.add_mutually_exclusive_group() group.add_argument("-d", "--debug", action="store_true") group.add_argument("-q", "--quiet", action="store_true") +parser.add_argument("--ignore-missing-files", action="store_true", + help="useful for local testing, where you don't have all the build logs, etc..") args, unknown_args = parser.parse_known_args() log_level = logging.INFO if args.debug or DEBUG: @@ -106,6 +108,8 @@ log.debug("REPRODUCIBLE_JSON:\t" + REPRODUCIBLE_JSON) log.debug("JENKINS_URL:\t\t" + JENKINS_URL) log.debug("REPRODUCIBLE_URL:\t" + REPRODUCIBLE_URL) +if args.ignore_missing_files: + log.warning("Missing files will be ignored!") tab = ' ' |