From ff1ccba2fae3dcf52550598b7f5d5779b99d068d Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Fri, 25 Mar 2016 08:47:06 +0100 Subject: [PATCH] Add report project name globbing. --- lib/ctt/report.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ctt/report.py b/lib/ctt/report.py index 4f6afb3..1dd2abd 100755 --- a/lib/ctt/report.py +++ b/lib/ctt/report.py @@ -30,6 +30,7 @@ import os import os.path import re import sys +import glob import ctt import ctt.listprojects @@ -63,7 +64,10 @@ class Report(object): projects=ctt.listprojects.ListProjects.list_projects() else: - projects=args.project + projects = [] + for x in args.project: + fnames = glob.glob(os.path.join(ctt.ctt_dir(), x)) + projects.extend(fnames) total_time = 0 for project in projects: