summaryrefslogtreecommitdiff
path: root/tests/lbu_test
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2023-01-23 19:28:28 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2023-01-24 10:41:58 +0000
commitf62775fc697446d1d969faa55adcdeca5400b8ea (patch)
tree59b945aa3dcd06915adda27a0b544b5667e917b9 /tests/lbu_test
parentea460f60dc63c6a41b510fdecef03b7a2e1af9a2 (diff)
downloadalpine-conf-f62775fc697446d1d969faa55adcdeca5400b8ea.zip
tests: move fake audit to fake apk
So we can re-use it
Diffstat (limited to 'tests/lbu_test')
-rwxr-xr-xtests/lbu_test16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/lbu_test b/tests/lbu_test
index 73f0e65..6f9a537 100755
--- a/tests/lbu_test
+++ b/tests/lbu_test
@@ -160,22 +160,8 @@ lbu_st_usage_body() {
lbu st -h
}
-create_fake_apk_audit() {
- mkdir -p bin etc
- cat >bin/apk<<-EOF
- #!/bin/sh
- # mock apk
- echo etc/localtime
- echo etc/hosts
- EOF
- chmod +x bin/apk
- touch etc/localtime etc/hosts
- export PATH="$PWD/bin:$PATH"
-}
-
lbu_package_body() {
init_env
- create_fake_apk_audit
atf_check \
lbu package
@@ -204,7 +190,6 @@ lbu_package_encrypted_body() {
echo 'ENCRYPTION=$DEFAULT_CIPHER'
echo 'PASSWORD=foobar'
) > "$PWD/$sysconfdir/lbu.conf"
- create_fake_apk_audit
atf_check \
-e match:"WARNING" \
@@ -218,7 +203,6 @@ lbu_package_encrypted_body() {
lbu_package_pre_post_hooks_body() {
init_env
get_sysconfdir
- create_fake_apk_audit
mkdir -p "$PWD/$sysconfdir/pre-package.d" \
"$PWD/$sysconfdir/post-package.d"