diff options
author | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2014-03-19 23:48:22 +0000 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2014-03-19 23:48:22 +0000 |
commit | c0f7c2ccaeadefe1b3d2ed177c98e17e7bab16c1 (patch) | |
tree | 1bfec2a799c64fe67f36eaf37423823608f34f15 | |
parent | 0a31aa013686ab9bf8fcd057243de88d5595f305 (diff) |
added adb disconnect before the end of the test
-rwxr-xr-x | prepare-config.py | 4 | ||||
-rwxr-xr-x | tear-down.sh | 5 | ||||
-rw-r--r-- | wa2host.yaml | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/prepare-config.py b/prepare-config.py index b4644a8..f6253dd 100755 --- a/prepare-config.py +++ b/prepare-config.py @@ -8,6 +8,7 @@ CONFIG_NAME = "config.py" CONFIG_PATH = TEMPLATE_PATH + CONFIG_NAME LAVA_CACHE_PATH = "/tmp/lava_multi_node_cache.txt" ROOT = 'root' +IPADDR_FILE = "IPADDR" if __name__ == '__main__': lava_cache_file = open(LAVA_CACHE_PATH, 'r') @@ -19,6 +20,9 @@ if __name__ == '__main__': ipaddr = None if lava_cache_match: ipaddr = lava_cache_match.group("value") + ipaddr_file = open(IPADDR, "w") + ipaddr_file.write(ipaddr) + ipaddr_file.close() else: sys.exit(1) config = open(CONFIG_PATH, "r") diff --git a/tear-down.sh b/tear-down.sh new file mode 100755 index 0000000..4bf14b5 --- /dev/null +++ b/tear-down.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +IPADDR=`cat IPADDR` +echo "Disconnecting adb from $IPADDR:5555" +adb disconnect $IPADDR:5555 diff --git a/wa2host.yaml b/wa2host.yaml index 82c71ca..0983f32 100644 --- a/wa2host.yaml +++ b/wa2host.yaml @@ -27,4 +27,5 @@ run: - lava-test-case step7-prepare-config --shell ./prepare-config.py - lava-test-case step8-prepare-device --shell ./prepare-device.sh $MODE - lava-test-case step9-run-workload --shell ./run-workload.sh $AGENDA $JOB_NAME + - lava-test-case step10-tear-down --shell ./tear-down.sh - lava-test-case step10-multinode-sync --shell lava-sync workload-finished |