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: