From 22366544c3a96c7f113cbf48662cb58d82cc53b5 Mon Sep 17 00:00:00 2001 From: "jin-gyu.kim" Date: Wed, 29 Apr 2020 13:50:34 +0900 Subject: [PATCH] Use tizen-build.conf to distinguish a profile - Check profile info before moving failed lists of systemd units. Change-Id: Iebc30d76a1ee5d007ef810c3c92c9de62213188c --- test/new_service_test/systemd_test_util | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/new_service_test/systemd_test_util b/test/new_service_test/systemd_test_util index 9e7566b..0856fa7 100644 --- a/test/new_service_test/systemd_test_util +++ b/test/new_service_test/systemd_test_util @@ -12,8 +12,8 @@ dbus_service_dir="/usr/share/dbus-1/system-services/" # $1 : file path, $2 : file name function move_systemd_unit { - # TODO : This is temporary. Checking onlycap may need to be considered later. - if [ -e "/etc/smack/onlycap" ] + profile_info=$(grep "TZ_BUILD_PROFILE" /etc/tizen-build.conf | awk -F '[=]' '{ print $2 }') + if [ "$profile_info" == "mobile" ] || [ "$profile_info" == "wearable" ] then if [ ! -d $not_permitted_unit_path ] then -- 2.34.1