summaryrefslogtreecommitdiff
path: root/test/navigation/script/dltTrigger.py
diff options
context:
space:
mode:
authorasanoaozora <fifitaneki@hotmail.com>2017-05-23 18:06:26 +0200
committerasanoaozora <fifitaneki@hotmail.com>2017-05-23 18:06:26 +0200
commitd74c02eaf2edf2a9911e641ab39b57f196c11fdc (patch)
tree40742d8fe588141741a06d3025a08db933147112 /test/navigation/script/dltTrigger.py
parent312fedf2360633e7d76f9a70a17c5d4961964e34 (diff)
downloadpoi-service-d74c02eaf2edf2a9911e641ab39b57f196c11fdc.tar.gz
refine organization of test scripts
Diffstat (limited to 'test/navigation/script/dltTrigger.py')
-rw-r--r--test/navigation/script/dltTrigger.py42
1 files changed, 42 insertions, 0 deletions
diff --git a/test/navigation/script/dltTrigger.py b/test/navigation/script/dltTrigger.py
new file mode 100644
index 0000000..efba2d7
--- /dev/null
+++ b/test/navigation/script/dltTrigger.py
@@ -0,0 +1,42 @@
+#!/usr/bin/python
+
+"""
+**************************************************************************
+* @licence app begin@
+* SPDX-License-Identifier: MPL-2.0
+*
+* \copyright Copyright (C) 201, PSA GROUPE
+*
+* \file dlt-trigger.py
+*
+* \brief This script is part of the FSA scenario.
+*
+* \author Philippe Colliot <philippe.colliot@mpsa.com>
+*
+* \version 1.0
+*
+* This Source Code Form is subject to the terms of the
+* Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with
+# this file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+* List of changes:
+*
+* @licence end@
+
+**************************************************************************
+"""
+import subprocess,os
+from subprocess import call
+
+PATH_TEST_TRIGGER='../dlt-triggers/bin/'
+
+def startTrigger(name):
+ FNULL = open(os.devnull,'w')
+ test_trigger=PATH_TEST_TRIGGER + 'test-trigger'
+ call([test_trigger, "1", name])
+
+def stopTrigger(name):
+ FNULL = open(os.devnull,'w')
+ test_trigger=PATH_TEST_TRIGGER + 'test-trigger'
+ call([test_trigger, "0", name])
+