summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYiqiao Pu <ypu@redhat.com>2018-01-03 22:10:52 +0800
committerAtomic Bot <atomic-devel@projectatomic.io>2018-01-04 14:54:42 +0000
commit3b7a8c8911ebb720c91c3d19f25509adbf28b444 (patch)
treead85d6127f83166e9285795a47b47d92137bca11 /test
parent9ab256f72aea15c76514cf29566cd227f4a0c9f5 (diff)
downloadpodman-3b7a8c8911ebb720c91c3d19f25509adbf28b444.tar.gz
podman-3b7a8c8911ebb720c91c3d19f25509adbf28b444.tar.bz2
podman-3b7a8c8911ebb720c91c3d19f25509adbf28b444.zip
Update ctr_id for podman_pause test
The output from podman run may include some debug information which will make the ctr_id contains unexpect lines. Signed-off-by: Yiqiao Pu <ypu@redhat.com> Closes: #180 Approved by: mheon
Diffstat (limited to 'test')
-rw-r--r--test/podman_pause.bats10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/podman_pause.bats b/test/podman_pause.bats
index 768ffa53a..1408aa0c6 100644
--- a/test/podman_pause.bats
+++ b/test/podman_pause.bats
@@ -26,7 +26,7 @@ function teardown() {
run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} run -d $BB sleep 60"
echo "$output"
[ "$status" -eq 0 ]
- ctr_id="$output"
+ ctr_id=`echo "$output" | tail -n 1`
run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} pause $ctr_id"
echo "$output"
[ "$status" -eq 0 ]
@@ -43,7 +43,7 @@ function teardown() {
run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} run -d $BB sleep 60"
echo "$output"
[ "$status" -eq 0 ]
- ctr_id="$output"
+ ctr_id=`echo "$output" | tail -n 1`
run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} pause $ctr_id"
echo "$output"
[ "$status" -eq 0 ]
@@ -60,7 +60,7 @@ function teardown() {
run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} run -d $BB sleep 60"
echo "$output"
[ "$status" -eq 0 ]
- ctr_id="$output"
+ ctr_id=`echo "$output" | tail -n 1`
run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} unpause $ctr_id"
echo "$output"
[ "$status" -eq 1 ]
@@ -74,7 +74,7 @@ function teardown() {
run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} run -d $BB sleep 60"
echo "$output"
[ "$status" -eq 0 ]
- ctr_id="$output"
+ ctr_id=`echo "$output" | tail -n 1`
run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} pause $ctr_id"
echo "$output"
[ "$status" -eq 0 ]
@@ -91,7 +91,7 @@ function teardown() {
run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} run -d $BB sleep 60"
echo "$output"
[ "$status" -eq 0 ]
- ctr_id="$output"
+ ctr_id=`echo "$output" | tail -n 1`
run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} pause $ctr_id"
echo "$output"
[ "$status" -eq 0 ]