Issue #1024: don't chmod a nonexistent file
New network test makes improper assumptions about conmon path. Use predefined CONMON_BINARY variable instead. Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
parent
04951dcc6e
commit
0852f5c188
1 changed files with 2 additions and 2 deletions
|
@ -171,11 +171,11 @@ function teardown() {
|
|||
|
||||
# make conmon non-executable to cause the sandbox setup to fail after
|
||||
# networking has been configured
|
||||
chmod 0644 /go/src/github.com/kubernetes-incubator/cri-o/conmon/conmon
|
||||
chmod 0644 $CONMON_BINARY
|
||||
run crioctl pod run --config "$TESTDATA"/sandbox_config.json
|
||||
chmod 0755 $CONMON_BINARY
|
||||
echo "$output"
|
||||
[ "$status" -ne 0 ]
|
||||
chmod 0755 /go/src/github.com/kubernetes-incubator/cri-o/conmon/conmon
|
||||
|
||||
# ensure that the server cleaned up sandbox networking if the sandbox
|
||||
# failed after network setup
|
||||
|
|
Loading…
Reference in a new issue