diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py index b333c7e0c21..742349aa62e 100644 --- a/lib/spack/spack/package.py +++ b/lib/spack/spack/package.py @@ -1166,11 +1166,13 @@ def _has_make_target(self, target): # # GNU Make: # make: *** No rule to make target `test'. Stop. + # *** No rule to make target 'test'. Stop. # # BSD Make: # make: don't know how to make test. Stop missing_target_msgs = [ "No rule to make target `{0}'. Stop.", + "No rule to make target '{0}'. Stop.", "don't know how to make {0}. Stop", ] diff --git a/lib/spack/spack/test/build_systems.py b/lib/spack/spack/test/build_systems.py index 8915b813cb8..adf40ca3169 100644 --- a/lib/spack/spack/test/build_systems.py +++ b/lib/spack/spack/test/build_systems.py @@ -59,6 +59,7 @@ def test_affirmative_make_check(directory, config, mock_packages): 'directory', glob.iglob(os.path.join(DATA_PATH, 'make', 'negative', '*')) ) +@pytest.mark.regression('9067') def test_negative_make_check(directory, config, mock_packages): """Tests that Spack correctly ignores false positives in a Makefile."""