[gnome-code-assistance] [tests] Easier way to run individual tests
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-code-assistance] [tests] Easier way to run individual tests
- Date: Thu, 14 Nov 2013 18:14:22 +0000 (UTC)
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]