summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtsp/common.sh1
-rwxr-xr-xtsp/scripts/download_image.py2
-rwxr-xr-xtsp/scripts/log.sh2
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