Skip to content

Added a new target message to comply with newer versions of GNU Make#9068

Merged
adamjstewart merged 1 commit intospack:developfrom
epfl-scitas:fixes/make_negative_check
Aug 22, 2018
Merged

Added a new target message to comply with newer versions of GNU Make#9068
adamjstewart merged 1 commit intospack:developfrom
epfl-scitas:fixes/make_negative_check

Conversation

@alalazo
Copy link
Copy Markdown
Member

@alalazo alalazo commented Aug 22, 2018

fixes #9028
fixes #9067

Unit tests were failing on a system with GNU Make v 4.1

#fixes 9067

Unit tests were failing on a system with GNU Make v 4.1
@alalazo alalazo added bug Something isn't working tests General test capability(ies) travis labels Aug 22, 2018
@alalazo
Copy link
Copy Markdown
Member Author

alalazo commented Aug 22, 2018

fixes #9028

'directory',
glob.iglob(os.path.join(DATA_PATH, 'make', 'negative', '*'))
)
@pytest.mark.regression('9067')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this regression actually make sense here? I'm confused why only certain negative tests failed and not all of them for newer versions of Make.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I marked the regression (even though I didn't add a new test or modified an existing one) to leave information on a related issue.

I'm confused why only certain negative tests failed and not all of them for newer versions of Make.

I am not 😄 There are 3 tests, where one checks that Spack ignores directories without a Makefile. That one passed because _has_make_target returned a result before invoking make.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be clearer, the test that succeeds returns a value here:

# Check if we have a Makefile
for makefile in ['GNUmakefile', 'Makefile', 'makefile']:
if os.path.exists(makefile):
break
else:
tty.msg('No Makefile found in the build directory')
return False

Copy link
Copy Markdown
Member

@adamjstewart adamjstewart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! I never would've tracked this down.

@alalazo
Copy link
Copy Markdown
Member Author

alalazo commented Aug 22, 2018

I never would've tracked this down.

I'm not sold on this 😉

@adamjstewart adamjstewart merged commit 85f84aa into spack:develop Aug 22, 2018
@alalazo alalazo deleted the fixes/make_negative_check branch August 22, 2018 14:32
anderson2981 pushed a commit to anderson2981/spack that referenced this pull request Sep 7, 2018
…pack#9068)

#fixes 9067

Unit tests were failing on a system with GNU Make v 4.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working tests General test capability(ies)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failure in the tests for false positives in Makefiles "spack test" errors in Python 3.7

2 participants