Skip to content

Commit efc9256

Browse files
authored
Merge pull request #619 from jnovy/tests-fix
Fix remaining busybox references in tests
2 parents df729d2 + 21ffef0 commit efc9256

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

test/02-ctr-logs.bats

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,13 @@ run_conmon_with_log_opts() {
124124
--log-label "CONMON_TEST_LABEL2=$CTR_ID"
125125

126126
run journalctl --user CONMON_TEST_LABEL1="$CTR_ID"
127-
assert "${output}" =~ "hello from busybox"
127+
assert "${output}" =~ "hello from ubi10"
128128

129129
run journalctl --user CONMON_TEST_LABEL2="$CTR_ID"
130-
assert "${output}" =~ "hello from busybox"
130+
assert "${output}" =~ "hello from ubi10"
131131

132132
run journalctl --user NON_EXISTING_LABEL="$CTR_ID"
133-
assert "${output}" !~ "hello from busybox"
133+
assert "${output}" !~ "hello from ubi10"
134134
}
135135

136136
@test "ctr logs: k8s-file with --log-tag" {
@@ -147,13 +147,13 @@ run_conmon_with_log_opts() {
147147
--log-tag "tag_$CTR_ID"
148148

149149
run journalctl --user CONTAINER_TAG="tag_$CTR_ID"
150-
assert "${output}" =~ "hello from busybox"
150+
assert "${output}" =~ "hello from ubi10"
151151
}
152152

153153
@test "ctr logs: journald partial message" {
154154
# Print a message longer than the conmon buffer.
155155
# It should split it into multiple partial messages.
156-
setup_container_env "printf '%*s' "65535" | /busybox tr ' ' '#'"
156+
setup_container_env "printf '%*s' "65535" | tr ' ' '#'"
157157
run_conmon_with_default_args \
158158
--log-path "journald:"
159159

@@ -164,7 +164,7 @@ run_conmon_with_log_opts() {
164164
@test "ctr logs: k8s partial message" {
165165
# Print a message longer than the conmon buffer.
166166
# It should split it into multiple partial messages.
167-
setup_container_env "printf '%*s' "65535" | /busybox tr ' ' '#'"
167+
setup_container_env "printf '%*s' "65535" | tr ' ' '#'"
168168
run_conmon_with_default_args \
169169
--log-path "k8s-file:$LOG_PATH"
170170

test/10-ctrl.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ test_resize_command_ok() {
159159
}
160160

161161
@test "ctrl: rotate logs with --log-rotate" {
162-
setup_container_env "/busybox echo 'before rotation'; while [ ! -f /tmp/test.txt ]; do /busybox sleep 0.1; done; /busybox echo 'after rotation'" "true"
162+
setup_container_env "echo 'before rotation'; while [ ! -f /tmp/test.txt ]; do sleep 0.1; done; echo 'after rotation'" "true"
163163
generate_process_spec "echo 'Hello from exec!' && echo 'Hello there!' > /tmp/test.txt"
164164
start_conmon_with_default_args \
165165
--log-path "k8s-file:$LOG_PATH" \

0 commit comments

Comments
 (0)