diff --git a/scripts/chip-job-save-result b/scripts/chip-job-save-result index 8dbf27d5b1602490ded48121e86c0ae9b0dc590e..4ab07e3619a612aaa28f0da59c262bd55fe85761 100755 --- a/scripts/chip-job-save-result +++ b/scripts/chip-job-save-result @@ -12,7 +12,7 @@ parser.add_argument("-f", "--file", dest="file", required=True, help="Path to re parser.add_argument("-m", "--meta", dest="meta", required=True, help="Path to meta yaml file.") args = parser.parse_args() -if os.path.isfile(args.file) and os.path.isfile(args.meta): +if os.path.isfile(args.file) and os.path.isfile(args.meta) and os.path.getsize(args.file) > 0: mdb = chipathlon.db.MongoDB(args.host, args.username, args.password) with open(args.meta, "r") as rh: meta = yaml.load(rh)