From: Aleksander Mistewicz Date: Wed, 9 Nov 2016 13:16:28 +0000 (+0100) Subject: Add timestamp argument to tsp/scripts/crawler.py X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8b69ce893e557e5640ec26169258d94e7887285;p=tools%2Ftestlab%2Fmajor.git Add timestamp argument to tsp/scripts/crawler.py Change-Id: I9a1c51c024ea0b58b0e76b17e604743a30782065 Signed-off-by: Aleksander Mistewicz --- diff --git a/tsp/scripts/crawler.py b/tsp/scripts/crawler.py index f2cc309..9ea25fd 100755 --- a/tsp/scripts/crawler.py +++ b/tsp/scripts/crawler.py @@ -121,6 +121,9 @@ def parse_arguments(): action="store", dest="loglevel", help="Verbosity level") + parser.add_argument("-t", "--timestamp", default="timestamp", + help="File to read a reference timestamp from") + args = parser.parse_args() return args @@ -134,10 +137,9 @@ if '__main__' == __name__: logging.basicConfig(format='%(asctime)s %(message)s',level=numeric_level) logging.debug("Begin") snapshots = crawl(args.url) - timestamp_file = 'timestamp' + timestamp_file = args.timestamp if "snapshots" in args.url: - timestamp_file = 'timestamp_snapshot' discovered = snapshots else: discovered = set()