mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
tests/int: whitespace cleanup
Fix - whitespace at EOL - empty lines at EOF Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -318,4 +318,3 @@ function simple_cr() {
|
||||
unlink "$tmp"
|
||||
test -f ./work-dir/"$tmplog2" && unlink ./work-dir/"$tmplog2"
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ function setup() {
|
||||
echo "Forbidden information!" > rootfs/testfile
|
||||
|
||||
# add extra masked paths
|
||||
update_config '(.. | select(.maskedPaths? != null)) .maskedPaths += ["/testdir", "/testfile"]'
|
||||
update_config '(.. | select(.maskedPaths? != null)) .maskedPaths += ["/testdir", "/testfile"]'
|
||||
}
|
||||
|
||||
function teardown() {
|
||||
|
||||
@@ -13,8 +13,8 @@ function teardown() {
|
||||
}
|
||||
|
||||
@test "runc run [bind mount]" {
|
||||
update_config ' .mounts += [{"source": ".", "destination": "/tmp/bind", "options": ["bind"]}]
|
||||
| .process.args |= ["ls", "/tmp/bind/config.json"]'
|
||||
update_config ' .mounts += [{"source": ".", "destination": "/tmp/bind", "options": ["bind"]}]
|
||||
| .process.args |= ["ls", "/tmp/bind/config.json"]'
|
||||
|
||||
runc run test_bind_mount
|
||||
[ "$status" -eq 0 ]
|
||||
|
||||
@@ -27,7 +27,7 @@ function teardown() {
|
||||
# replace "uid": 0 with "uid": 1000
|
||||
# and do a similar thing for gid.
|
||||
update_config ' (.. | select(.uid? == 0)) .uid |= 1000
|
||||
| (.. | select(.gid? == 0)) .gid |= 100'
|
||||
| (.. | select(.gid? == 0)) .gid |= 100'
|
||||
|
||||
# run busybox detached
|
||||
runc run -d --console-socket "$CONSOLE_SOCKET" test_busybox
|
||||
|
||||
@@ -26,8 +26,8 @@ function teardown() {
|
||||
|
||||
# replace "uid": 0 with "uid": 1000
|
||||
# and do a similar thing for gid.
|
||||
update_config ' (.. | select(.uid? == 0)) .uid |= 1000
|
||||
| (.. | select(.gid? == 0)) .gid |= 100'
|
||||
update_config ' (.. | select(.uid? == 0)) .uid |= 1000
|
||||
| (.. | select(.gid? == 0)) .gid |= 100'
|
||||
|
||||
# run hello-world
|
||||
runc run test_hello
|
||||
|
||||
@@ -12,7 +12,7 @@ function teardown() {
|
||||
}
|
||||
|
||||
@test "umask" {
|
||||
update_config '.process.user += {"umask":63}'
|
||||
update_config '.process.user += {"umask":63}'
|
||||
|
||||
# run busybox detached
|
||||
runc run -d --console-socket "$CONSOLE_SOCKET" test_busybox
|
||||
|
||||
@@ -476,7 +476,7 @@ EOF
|
||||
# Run a basic shell script that tries to write to /dev/null. If "runc
|
||||
# update" makes use of minimal transition rules, updates should not cause
|
||||
# writes to fail at any point.
|
||||
update_config '.process.args |= ["sh", "-c", "while true; do echo >/dev/null; done"]'
|
||||
update_config '.process.args |= ["sh", "-c", "while true; do echo >/dev/null; done"]'
|
||||
|
||||
# Set up a temporary console socket and recvtty so we can get the stdio.
|
||||
TMP_RECVTTY_DIR="$(mktemp -d "$BATS_TMPDIR/runc-tmp-recvtty.XXXXXX")"
|
||||
|
||||
Reference in New Issue
Block a user