Add report project name globbing.

This commit is contained in:
Darko Poljak 2016-03-25 08:47:06 +01:00
parent ac15255ad7
commit ff1ccba2fa

View file

@ -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: