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>
exit ${2:-1}
}
+test -z "${TSP_DIR}" || export TS_ONFINISH="${TSP_DIR}/scripts/log.sh"
WS="${HOME}/ws"
WS_WATCHER="${WS}/watcher"
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)
--- /dev/null
+#!/bin/sh
+echo $@ >> /tmp/testlab.log