aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hudson-Doyle <michael.hudson@linaro.org>2014-08-25 09:04:33 +1200
committerMichael Hudson-Doyle <michael.hudson@linaro.org>2014-08-25 09:04:33 +1200
commite89f773011648ea69216d9c6c112bb02bba8a1b8 (patch)
treee3f0846c8707ce968c4f545cfcc837180330724c
parent83a625fd1b9b20df6abe3f9046f031f55cc3caff (diff)
make demo job do something useful: run a hacking session
-rw-r--r--hacking-session.yaml24
-rw-r--r--job.yaml9
2 files changed, 33 insertions, 0 deletions
diff --git a/hacking-session.yaml b/hacking-session.yaml
new file mode 100644
index 0000000..e6ece48
--- /dev/null
+++ b/hacking-session.yaml
@@ -0,0 +1,24 @@
+metadata:
+ name: hacking-session
+ maintainer:
+ - Michael Hudson-Doyle <michael.hudson@linaro.org>
+ format: "Lava-Test-Shell Test Definition 1.0"
+ version: 1.0
+ description: "Hacking session."
+ os:
+ - ubuntu
+ devices:
+ # Only tested on mustang so far.
+ - mustang
+ environment:
+ - lava-test-shell
+
+run:
+ steps:
+ - "set -x"
+ - "resolvconf -u"
+ - 'echo "ssh to $(ip route get 8.8.8.8 | awk ''match($0, /src ([0-9.]+)/, a) { print a[1] }'')'
+ - "sleep ${LAVA_SLEEP_DURATION-3600}"
+
+params:
+ LAVA_SLEEP_DURATION: 3600
diff --git a/job.yaml b/job.yaml
index e5e40db..392d4b1 100644
--- a/job.yaml
+++ b/job.yaml
@@ -67,6 +67,15 @@ actions:
- 'ext4load scsi 0 ${script_addr_r} boot/boot.scr'
- 'source ${script_addr_r}'
+ - command: lava_test_shell
+ parameters:
+ testdef_repos:
+ - git-repo: http://git.linaro.org/git-ro/people/michael.hudson-doyle/lava-deploy-cloudimg.git
+ testdef: 'hacking-session.yaml'
+ parameters:
+ LAVA_SLEEP_DURATION: 3600
+ timeout: 900
+
- command: submit_results
parameters:
server: 'http://validation.linaro.org/RPC2/'