Do not check profile info while running systemd unit test. 27/283027/1
authorJin-gyu Kim <jin-gyu.kim@samsung.com>
Mon, 17 Oct 2022 02:20:25 +0000 (11:20 +0900)
committerJin-gyu Kim <jin-gyu.kim@samsung.com>
Mon, 17 Oct 2022 02:23:41 +0000 (11:23 +0900)
- If invalid systemd units exists, move those in every profile.

Change-Id: Ie4bc762f0d6e57fba0af41240b876300f1d04b5a

test/new_service_test/systemd_test_util

index 0856fa7228b5eb92104b3564ea36b87a010c9bb6..eea3aaaa44bb173eca8e505ef91b3d0842452d33 100644 (file)
@@ -12,15 +12,11 @@ dbus_service_dir="/usr/share/dbus-1/system-services/"
 # $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"
 }