Test mode for installation of widgets in profiling script
authorTomasz Iwanek <t.iwanek@samsung.com>
Wed, 21 Nov 2012 12:48:07 +0000 (13:48 +0100)
committerGerrit Code Review <gerrit2@kim11>
Thu, 22 Nov 2012 10:35:55 +0000 (19:35 +0900)
[Issue#]       N/A
[Bug]          wrt-installer should be launched in TEST_MODE
[Cause]        wrt-installer will prompt popups with test mode
[Solution]     N/A
[Verification] Run profiling_target_part.pl and see if widgets have been installed with no popups

Change-Id: I5f81361bb21c5d79ae657de50e9c55a74f314537

src/profiling/script/profiling-target-part.pl

index 4a1d060..de307dd 100755 (executable)
@@ -22,15 +22,17 @@ my @WIDGETS = (
   ['0Jet_Pack_Agent.wgt', 'Jet Pack Agent'],
   ['wac2_0Test.wgt', 'WAC Test' ],
 );
+my $WRT_INSTALL_ENV = 'WRT_TEST_MODE=1';
+
 my $WRT_CLIENT_LAUNCH = 'wrt-client -l {}';
 my $WRT_CLIENT_QUERY = 'wrt-launcher -l 2>/dev/null';
-my $WRT_CLIENT_INSTALL = 'wrt-installer -i {}';
-my $WRT_CLIENT_UNINSTALL = 'wrt-installer -un {}';
+my $WRT_CLIENT_INSTALL = "$WRT_INSTALL_ENV wrt-installer -i {}";
+my $WRT_CLIENT_UNINSTALL = "$WRT_INSTALL_ENV wrt-installer -un {}";
 my $COLD_START_PREPARE_COMMAND = '/sbin/sysctl vm.drop_caches=3';
 my $OUTPUT_DIR = './OUTPUT';
 my $PRELOAD_LIBRARIES = './utils/wrt-preloader';
 
-##### ONFIGURATION end #####
+##### CONFIGURATION end #####
 
 
 use strict;