diff --git a/test/framework/options.py b/test/framework/options.py index 3be8430776..70a66dff7d 100644 --- a/test/framework/options.py +++ b/test/framework/options.py @@ -895,7 +895,8 @@ def test_from_pr(self): ] for path_prefix, module in modules: ec_fn = "%s.eb" % '-'.join(module.split('/')) - regex = re.compile(r"^ \* \[.\] %s.*%s \(module: %s\)$" % (path_prefix, ec_fn, module), re.M) + path = '.*%s' % os.path.dirname(path_prefix) + regex = re.compile(r"^ \* \[.\] %s.*%s \(module: %s\)$" % (path, ec_fn, module), re.M) self.assertTrue(regex.search(outtxt), "Found pattern %s in %s" % (regex.pattern, outtxt)) # make sure that *only* these modules are listed, no others @@ -903,7 +904,7 @@ def test_from_pr(self): self.assertTrue(sorted(regex.findall(outtxt)), sorted(modules)) pr_tmpdir = os.path.join(tmpdir, 'eb-\S{6}', 'files_pr1239') - regex = re.compile("Prepended list of robot search paths with %s:" % pr_tmpdir, re.M) + regex = re.compile("Appended list of robot search paths with %s:" % pr_tmpdir, re.M) self.assertTrue(regex.search(outtxt), "Found pattern %s in %s" % (regex.pattern, outtxt)) except URLError, err: print "Ignoring URLError '%s' in test_from_pr" % err @@ -945,12 +946,12 @@ def test_from_pr_listed_ecs(self): outtxt = self.eb_main(args, logfile=dummylogfn, raise_error=True) modules = [ (test_ecs_path, 'toy/0.0'), # not included in PR - (tmpdir, 'GCC/4.9.2'), # not included in PR - (tmpdir, 'hwloc/1.10.0-GCC-4.9.2'), - (tmpdir, 'numactl/2.0.10-GCC-4.9.2'), - (tmpdir, 'OpenMPI/1.8.4-GCC-4.9.2'), - (tmpdir, 'gompi/2015a'), - (test_ecs_path, 'GCC/4.6.3'), # not included in PR + (test_ecs_path, 'GCC/4.9.2'), # not included in PR, available locally + ('.*%s' % os.path.dirname(tmpdir), 'hwloc/1.10.0-GCC-4.9.2'), + ('.*%s' % os.path.dirname(tmpdir), 'numactl/2.0.10-GCC-4.9.2'), + ('.*%s' % os.path.dirname(tmpdir), 'OpenMPI/1.8.4-GCC-4.9.2'), + ('.*%s' % os.path.dirname(tmpdir), 'gompi/2015a'), + (test_ecs_path, 'GCC/4.6.3'), # not included in PR, available locally ] for path_prefix, module in modules: ec_fn = "%s.eb" % '-'.join(module.split('/'))