From dfb9f7a2a7c956133ff55a46589afa464673860e Mon Sep 17 00:00:00 2001 From: gukj-spel <2459548460@qq.com> Date: Thu, 12 Dec 2024 02:41:30 +0000 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E6=AD=A2=E4=B8=89=E4=B8=AA=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E9=A1=B9=E5=9C=A8x86=20=E5=92=8C=20riscv=20=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E7=9A=84=20reload=20=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../systemd/oe_test_service_dbus-org.freedesktop.login1.sh | 6 ++++-- .../cli-test/systemd/oe_test_service_systemd-logind.sh | 6 ++++-- testcases/cli-test/systemd/oe_test_service_systemd-udevd.sh | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/testcases/cli-test/systemd/oe_test_service_dbus-org.freedesktop.login1.sh b/testcases/cli-test/systemd/oe_test_service_dbus-org.freedesktop.login1.sh index f17626ab8..52385c969 100644 --- a/testcases/cli-test/systemd/oe_test_service_dbus-org.freedesktop.login1.sh +++ b/testcases/cli-test/systemd/oe_test_service_dbus-org.freedesktop.login1.sh @@ -17,12 +17,14 @@ # @Desc : Test dbus-org.freedesktop.login1.service restart # ############################################# -source "../common/common_lib.sh" +source "$OET_PATH/testcases/cli-test/common/common_lib.sh" function run_test() { LOG_INFO "Start testing..." test_execution dbus-org.freedesktop.login1.service - test_reload dbus-org.freedesktop.login1.service + if [[ "$NODE1_FRAME" != "riscv64" && "$NODE1_FRAME" != "x86_64" ]]; then + test_reload dbus-org.freedesktop.login1.service + fi LOG_INFO "Finish test!" } diff --git a/testcases/cli-test/systemd/oe_test_service_systemd-logind.sh b/testcases/cli-test/systemd/oe_test_service_systemd-logind.sh index 35133a125..5e677f410 100644 --- a/testcases/cli-test/systemd/oe_test_service_systemd-logind.sh +++ b/testcases/cli-test/systemd/oe_test_service_systemd-logind.sh @@ -17,12 +17,14 @@ # @Desc : Test systemd-logind.service restart # ############################################# -source "../common/common_lib.sh" +source "$OET_PATH/testcases/cli-test/common/common_lib.sh" function run_test() { LOG_INFO "Start testing..." test_execution systemd-logind.service - test_reload systemd-logind.service + if [[ "$NODE1_FRAME" != "riscv64" && "$NODE1_FRAME" != "x86_64" ]]; then + test_reload systemd-logind.service + fi LOG_INFO "Finish test!" } diff --git a/testcases/cli-test/systemd/oe_test_service_systemd-udevd.sh b/testcases/cli-test/systemd/oe_test_service_systemd-udevd.sh index 0e7c68551..8f3495d0a 100644 --- a/testcases/cli-test/systemd/oe_test_service_systemd-udevd.sh +++ b/testcases/cli-test/systemd/oe_test_service_systemd-udevd.sh @@ -17,7 +17,7 @@ # @Desc : Test systemd-udevd.service restart # ############################################# -source "../common/common_lib.sh" +source "$OET_PATH/testcases/cli-test/common/common_lib.sh" function pre_test() { LOG_INFO "Start environmental preparation." @@ -29,7 +29,9 @@ function pre_test() { function run_test() { LOG_INFO "Start testing..." test_execution systemd-udevd.service - test_reload systemd-udevd.service + if [[ "$NODE1_FRAME" != "riscv64" && "$NODE1_FRAME" != "x86_64" ]]; then + test_reload systemd-udevd.service + fi LOG_INFO "Finish test!" } -- Gitee