diff options
-rwxr-xr-x | tsp/common.sh | 1 | ||||
-rwxr-xr-x | tsp/scripts/download_image.py | 2 | ||||
-rwxr-xr-x | tsp/scripts/log.sh | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/tsp/common.sh b/tsp/common.sh index 5356091..8dd90a1 100755 --- a/tsp/common.sh +++ b/tsp/common.sh @@ -27,6 +27,7 @@ die() { exit ${2:-1} } +test -z "${TSP_DIR}" || export TS_ONFINISH="${TSP_DIR}/scripts/log.sh" WS="${HOME}/ws" WS_WATCHER="${WS}/watcher" 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 |