This is a simple test case for substeps.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
--- /dev/null
+#!/bin/sh
+set -e
+
+flight=`./cs-flight-create play xen-unstable`
+
+runvars=bogus=0
+
+for j in test-1 test-2; do
+ ./cs-job-create $flight $j test-substeps \
+ $runvars
+ runvars=bogus=1
+done
+
+echo $flight
ts-guest-destroy-hard host $g +
}
+proc need-hosts/test-substeps {} { }
+proc run-job/test-substeps {} {
+ run-ts . = ts-substep-test suba:foo 1 subb:wombat suba=pass
+ run-ts . =.2 ts-substep-test subx:foo 1 subx=fail
+ run-ts . =.3 ts-substep-test ,bogus subb=pass
+}
+
if {[file exists sg-run-job-adhoc]} {
source sg-run-job-adhoc
}