summaryrefslogtreecommitdiffstats
path: root/tests/roles/cli/tasks/run.yaml
diff options
context:
space:
mode:
authorGuohua Ouyang <gouyang@redhat.com>2018-04-19 21:43:06 +0800
committerGuohua Ouyang <gouyang@redhat.com>2018-04-19 21:43:06 +0800
commit619163f3a6ef9c19a644bd314382b0ff6edbddbc (patch)
treeb620ef957f3ccf2de3c3e60a2165244707ccdf0f /tests/roles/cli/tasks/run.yaml
parent4770dbb8bf1af8c6a58c2cc154838bc613d939e4 (diff)
downloadbuildah-master.tar.gz
buildah-master.tar.xz
buildah-master.zip
Sync new tests from upstreamfirstHEADmaster
* the tests is quite old since it moved from upstreamfirst * lots of new cases are added, like option 'run', 'inspect' etc * save log to TEST_ARTIFACTS when the variable is set * always run tests with latest runc built from source Signed-off-by: Guohua Ouyang <gouyang@redhat.com>
Diffstat (limited to 'tests/roles/cli/tasks/run.yaml')
-rw-r--r--tests/roles/cli/tasks/run.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/roles/cli/tasks/run.yaml b/tests/roles/cli/tasks/run.yaml
new file mode 100644
index 0000000..d80a823
--- /dev/null
+++ b/tests/roles/cli/tasks/run.yaml
@@ -0,0 +1,10 @@
+---
+- name: buildah run with option hostname
+ command: buildah run --hostname example.buildah.com nginxc -- hostname
+ register: hostname
+ failed_when: '"example.buildah.com" not in hostname.stdout'
+
+- name: buildah run with option volume
+ command: buildah run --volume /tmp/buildah/bud:/home nginxc ls /home
+ register: volume
+ failed_when: '"hello" not in volume.stdout'