diff options
author | Aleksander Mistewicz <a.mistewicz@samsung.com> | 2016-07-08 14:52:09 +0200 |
---|---|---|
committer | Aleksander Mistewicz <a.mistewicz@samsung.com> | 2016-10-07 17:29:30 +0200 |
commit | 793f97c8416e4abdc42eec8ef3e0253ca5c5279e (patch) | |
tree | 45655b84d96afbe208e432cd09765d5fb7fb5e2d /tsp/scripts | |
parent | 79a3248c57098529aa071b09bcfd1c39f8ad4d18 (diff) | |
download | major-793f97c8416e4abdc42eec8ef3e0253ca5c5279e.tar.gz major-793f97c8416e4abdc42eec8ef3e0253ca5c5279e.tar.bz2 major-793f97c8416e4abdc42eec8ef3e0253ca5c5279e.zip |
Log every finished job to /tmp/testlab.log
Add quiet param to wget in tsp/scripts/download_image.py
Add tsp/scripts/log.sh which writes all its params to /tmp/testlab.log
Add env variable in tsp/common.sh: TS_ONFINISH if TSP_DIR is set
Change-Id: I87510f3fe73dc20d1842075cdf77186b8d298581
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Diffstat (limited to 'tsp/scripts')
-rwxr-xr-x | tsp/scripts/download_image.py | 2 | ||||
-rwxr-xr-x | tsp/scripts/log.sh | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tsp/scripts/download_image.py b/tsp/scripts/download_image.py index f3d7a6a..895ea5c 100755 --- a/tsp/scripts/download_image.py +++ b/tsp/scripts/download_image.py @@ -197,7 +197,7 @@ class ImageDownloader: def get(self, urls, md5sum): while True: - subprocess.call(["wget", "-c"] + urls) + subprocess.call(["wget", "-cq"] + urls) if not self.check_md5(md5sum): break time.sleep(60) diff --git a/tsp/scripts/log.sh b/tsp/scripts/log.sh new file mode 100755 index 0000000..bd29684 --- /dev/null +++ b/tsp/scripts/log.sh @@ -0,0 +1,2 @@ +#!/bin/sh +echo $@ >> /tmp/testlab.log |