summaryrefslogtreecommitdiff
path: root/tsp/scripts
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2016-11-09 13:16:28 (GMT)
committerAleksander Mistewicz <a.mistewicz@samsung.com>2017-01-16 10:07:49 (GMT)
commitf8b69ce893e557e5640ec26169258d94e7887285 (patch)
treea9aa5c16b5eee69e00f59ace4e3a1574767ff7e3 /tsp/scripts
parent359f78aa48584394cb9283c49e11bee62871db60 (diff)
downloadmajor-f8b69ce893e557e5640ec26169258d94e7887285.zip
major-f8b69ce893e557e5640ec26169258d94e7887285.tar.gz
major-f8b69ce893e557e5640ec26169258d94e7887285.tar.bz2
Add timestamp argument to tsp/scripts/crawler.pyrefs/changes/28/108728/3
Change-Id: I9a1c51c024ea0b58b0e76b17e604743a30782065 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Diffstat (limited to 'tsp/scripts')
-rwxr-xr-xtsp/scripts/crawler.py6
1 files changed, 4 insertions, 2 deletions
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()