[tracker] file for config settings
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] file for config settings
- Date: Thu, 4 Feb 2010 16:11:37 +0000 (UTC)
commit 60ea0a09ea510764ba5c0b9616152c5a0c4b9fba
Author: amit <amit esdhcp035176 research nokia com>
Date: Wed Feb 3 16:15:36 2010 +0200
file for config settings
tests/functional-tests/configuration.py | 38 +++++++++++++++++++++++++++++++
1 files changed, 38 insertions(+), 0 deletions(-)
---
diff --git a/tests/functional-tests/configuration.py b/tests/functional-tests/configuration.py
new file mode 100644
index 0000000..16c1ac2
--- /dev/null
+++ b/tests/functional-tests/configuration.py
@@ -0,0 +1,38 @@
+#!/usr/bin/python
+
+# This is the configuration file for tracker testcases.
+# Define the location of the test data in testDataDir
+# This also checks if the program is running in target or in host and return the column of pid
+
+import os, sys
+
+testDataDir_pre = '/usr/share/tracker-func-ci-tests/testdata/'
+testDataDir = '/home/user/MyDocs/.sounds/'
+
+def dir_path():
+ return testDataDir
+
+
+def check_target():
+ on_target = 'OSSO_PRODUCT_NAME'
+ try :
+ if os.environ[on_target]:
+ #if os.environ['DBUS_SESSION_BUS_ADDRESS'] == 'unix:path=/tmp/session_bus_socket':
+ awk_print = '1'
+ return awk_print
+ except KeyError:
+ awk_print = '2'
+ return awk_print
+
+'''
+sboxindicator='/targets/links/scratchbox.config'
+try :
+ if os.path.islink(sboxindicator) and os.path.isfile(os.readlink(sboxindicator)) :
+ awk_print = '3'
+ else:
+ awk_print = '2'
+
+except OSError:
+ awk_print = '2'
+'''
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]