From: Jin-gyu Kim Date: Mon, 17 Oct 2022 02:20:25 +0000 (+0900) Subject: Do not check profile info while running systemd unit test. X-Git-Tag: accepted/tizen/7.0/unified/20221129.083957^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b083878bc7e15c478b186ce4930b1239ead4722;p=platform%2Fcore%2Fsecurity%2Fsecurity-config.git Do not check profile info while running systemd unit test. - If invalid systemd units exists, move those in every profile. Change-Id: Ie4bc762f0d6e57fba0af41240b876300f1d04b5a --- diff --git a/test/new_service_test/systemd_test_util b/test/new_service_test/systemd_test_util index e690422..f6b91ad 100644 --- a/test/new_service_test/systemd_test_util +++ b/test/new_service_test/systemd_test_util @@ -16,15 +16,11 @@ systemd_socket_list="$cur_dir/systemd_socket.list" # $1 : file path, $2 : file name function move_systemd_unit { - profile_info=$(grep "TZ_BUILD_PROFILE" /etc/tizen-build.conf | awk -F '[=]' '{ print $2 }') - if [ "$profile_info" == "mobile" ] || [ "$profile_info" == "wearable" ] + if [ ! -d $not_permitted_unit_path ] then - if [ ! -d $not_permitted_unit_path ] - then - mkdir $not_permitted_unit_path - fi - mv "$1" "$not_permitted_unit_path$2" + mkdir $not_permitted_unit_path fi + mv "$1" "$not_permitted_unit_path$2" }