From b2922f73f27ddd87f315e4f2874df796c6f695b0 Mon Sep 17 00:00:00 2001 From: wangyu Date: Sat, 6 May 2023 10:42:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=84=9A=E6=9C=ACoe=5Ftest?= =?UTF-8?q?=5Faccess=5Fprovidepam.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- testcases/cli-test/acl/oe_test_access_providepam.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/testcases/cli-test/acl/oe_test_access_providepam.sh b/testcases/cli-test/acl/oe_test_access_providepam.sh index 20c04b955..92570d9ee 100644 --- a/testcases/cli-test/acl/oe_test_access_providepam.sh +++ b/testcases/cli-test/acl/oe_test_access_providepam.sh @@ -19,6 +19,12 @@ source "$OET_PATH/libs/locallibs/common_lib.sh" +function pre_test() { + LOG_INFO "Start environmental preparation." + DNF_INSTALL systemd-pam + LOG_INFO "End of environmental preparation!" +} + function run_test() { LOG_INFO "Start to run test." rpm -qa|grep pam @@ -28,4 +34,10 @@ function run_test() { LOG_INFO "End of the test" } +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE + LOG_INFO "Finish environment cleanup!" +} + main "$@" -- Gitee