diff options
author | Antonio Terceiro <antonio.terceiro@linaro.org> | 2013-05-28 19:08:12 -0300 |
---|---|---|
committer | Antonio Terceiro <antonio.terceiro@linaro.org> | 2013-05-28 19:08:12 -0300 |
commit | 614a96e9d2fc9d17867b0ba894cbd13228a731e8 (patch) | |
tree | e7e79376f3ebb9580728c62b2ef530d4ebcfa94d /integration-tests.d | |
parent | 4525dbe1b7662850cc70d3e525232d6cd2b933b1 (diff) |
Implemented interactive configuration
now the code in lava/config.py needs unit tests!
Diffstat (limited to 'integration-tests.d')
-rw-r--r-- | integration-tests.d/lava-job-new-with-config.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/integration-tests.d/lava-job-new-with-config.sh b/integration-tests.d/lava-job-new-with-config.sh new file mode 100644 index 0000000..eb366f2 --- /dev/null +++ b/integration-tests.d/lava-job-new-with-config.sh @@ -0,0 +1,10 @@ +cat > "${tmpdir}/config" <<EOF +[DEFAULT] +device_type = panda + +[device_type=panda] +prebuilt_image = file:///path/to/panda.img +EOF +LAVACONFIG="${tmpdir}/config" lava job new "${tmpdir}/job.json" +cat "${tmpdir}/job.json" +grep "device_type.*panda" "${tmpdir}/job.json" && grep "image.*path.to.panda.img" "${tmpdir}/job.json" |