From f62775fc697446d1d969faa55adcdeca5400b8ea Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 23 Jan 2023 19:28:28 +0100 Subject: tests: move fake audit to fake apk So we can re-use it --- tests/lbu_test | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'tests/lbu_test') 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" -- cgit v1.2.3