From 149c3fd05fefb512a15294c31b053f6f75a23636 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 3 Dec 2013 14:13:54 -0500 Subject: [PATCH] Make runone work with more test output. --- scripts/runone.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/runone.py b/scripts/runone.py index 19b5f7195b..3c2b312723 100755 --- a/scripts/runone.py +++ b/scripts/runone.py @@ -32,8 +32,12 @@ def main(argv): if words[0].endswith(':'): del words[0] - test_method = words[0] - test_path = words[1].split('.') + if len(words) == 1: + test_path, test_method = words[0].rsplit('.', 1) + test_path = test_path.split('.') + else: + test_method = words[0] + test_path = words[1].split('.') if test_path[0] == 'mitx': del test_path[0] test_class = test_path[-1]