Do not check profile info while running systemd unit test. 18/284818/1 accepted/tizen/7.0/unified/20221129.083957
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, 28 Nov 2022 08:36:36 +0000 (17:36 +0900)
- If invalid systemd units exists, move those in every profile.

Change-Id: Ie4bc762f0d6e57fba0af41240b876300f1d04b5a

test/new_service_test/systemd_test_util

index e690422a6ac2f27fd2ab397b09ab3956c50297a2..f6b91ad317cc66eede8bf0e5be09854cf5773f11 100644 (file)
@@ -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"
 }