Merge pull request #1147 from datawolf/check-pid-file

Check pid file
This commit is contained in:
Qiang Huang
2016-10-26 20:59:40 +08:00
committed by GitHub
4 changed files with 4 additions and 2 deletions
+1
View File
@@ -8,6 +8,7 @@ RUN apt-get update && apt-get install -y \
curl \
gawk \
iptables \
jq \
pkg-config \
libaio-dev \
libcap-dev \
+1 -1
View File
@@ -51,7 +51,7 @@ function teardown() {
run cat pid.txt
[ "$status" -eq 0 ]
[[ ${lines[0]} =~ [0-9]+ ]]
[[ ${lines[0]} == $(__runc state test_busybox | jq '.pid') ]]
# start the command
runc start test_busybox
+1
View File
@@ -42,6 +42,7 @@ function teardown() {
run cat pid.txt
[ "$status" -eq 0 ]
[[ ${lines[0]} =~ [0-9]+ ]]
[[ ${lines[0]} != $(__runc state test_busybox | jq '.pid') ]]
}
@test "runc exec ls -la" {
+1 -1
View File
@@ -53,5 +53,5 @@ function teardown() {
run cat pid.txt
[ "$status" -eq 0 ]
[[ ${lines[0]} =~ [0-9]+ ]]
[[ ${lines[0]} == $(__runc state test_busybox | jq '.pid') ]]
}