From 702deae96d5dd035b349d2845286f0ec9fc6b4c2 Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Wed, 1 Feb 2017 00:43:52 -0700 Subject: Make partest --grep glob paths, not just filenames Allows for "partest --grep run/t365*" to work, while previous it returned: > partest --grep run\/t365* [error] no tests match pattern / glob [error] partest --grep run\/t365* [error] ^ --- project/PartestUtil.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'project') diff --git a/project/PartestUtil.scala b/project/PartestUtil.scala index 7343c1857f..ab7e62b3b4 100644 --- a/project/PartestUtil.scala +++ b/project/PartestUtil.scala @@ -64,9 +64,9 @@ object PartestUtil { } val matchingFileName = try { val filter = GlobFilter("*" + x + "*") - testFiles.allTestCases.filter(x => filter.accept(x._1.name)) + testFiles.allTestCases.filter(x => filter.accept(x._1.asFile.getPath)) } catch { - case t: Throwable => Nil + case _: Throwable => Nil } (matchingFileContent ++ matchingFileName).map(_._2).distinct.sorted } -- cgit v1.2.3