[gnome-code-assistance] [tests] Easier way to run individual tests



commit 90598fb3040f9b7e55ce0c40d279e0f392a38310
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Thu Nov 14 19:13:44 2013 +0100

    [tests] Easier way to run individual tests

 tests/service |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/service b/tests/service
index 6492d38..0c0aad4 100755
--- a/tests/service
+++ b/tests/service
@@ -388,7 +388,7 @@ dirname = os.path.dirname(__file__)
 if len(sys.argv) <= 1:
     testfiles = glob.glob(os.path.join(dirname, 'backends', '*.json'))
 else:
-    testfiles = sys.argv[1:]
+    testfiles = [os.path.join(dirname, 'backends', d + '.json') for d in sys.argv[1:]]
 
 dn = open(os.devnull, 'w')
 daemon = subprocess.Popen(['dbus-daemon', '--print-address', '--nofork', '--config-file', 
os.path.join(dirname, 'dbus.conf')], stdout=subprocess.PIPE, stderr=dn, close_fds=True)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]