Skip to content

spack test doesn't support Python 3.8 + macOS #20025

@adamjstewart

Description

@adamjstewart

The spack test command doesn't seem to work with Python 3, at least for me:

$ python3 $(which spack) test run m4
==> Spack test 5zpwbxxu43yidobk5y7qwagzxo77jeyx
$ python3 $(which spack) test results --logs
==> Results for test suite '5zpwbxxu43yidobk5y7qwagzxo77jeyx':
==>   m4-1.4.18-kzezvfi FAILED

==>   m4-1.4.18-qlyhwnr FAILED

$ python2 $(which spack) test run m4
==> Spack test 5zpwbxxu43yidobk5y7qwagzxo77jeyx
==> Testing package m4-1.4.18-kzezvfi
==> Testing package m4-1.4.18-qlyhwnr
$ python2 $(which spack) test results --logs
==> Results for test suite '5zpwbxxu43yidobk5y7qwagzxo77jeyx':
==>   m4-1.4.18-kzezvfi PASSED
==> Testing package m4-1.4.18-kzezvfi
==> [2020-11-20-16:11:31.081381] test: ensuring m4 version is 1.4.18
==> [2020-11-20-16:11:31.085485] '/Users/Adam/spack/opt/spack/darwin-catalina-x86_64/apple-clang-12.0.0/m4-1.4.18-kzezvfiholjl32zfa2vfkmvycrcp7rq6/bin/m4' '--version'
m4 (GNU M4) 1.4.18
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Rene' Seindal.
PASSED
==> [2020-11-20-16:11:31.155946] test: ensuring m4 example succeeds
==> [2020-11-20-16:11:31.157026] '/Users/Adam/spack/opt/spack/darwin-catalina-x86_64/apple-clang-12.0.0/m4-1.4.18-kzezvfiholjl32zfa2vfkmvycrcp7rq6/bin/m4' '/Users/Adam/.spack/test/5zpwbxxu43yidobk5y7qwagzxo77jeyx/m4-1.4.18-kzezvfi/data/m4/hello.m4'

// macro is defined
Hello, World!
PASSED

==>   m4-1.4.18-qlyhwnr PASSED
==> Testing package m4-1.4.18-qlyhwnr
==> [2020-11-20-16:11:47.213468] test: ensuring m4 version is 1.4.18
==> [2020-11-20-16:11:47.220733] '/Users/Adam/spack/opt/spack/darwin-catalina-x86_64/gcc-10.2.0/m4-1.4.18-qlyhwnrpg6e66gdldgivjps47fyu6gbn/bin/m4' '--version'
m4 (GNU M4) 1.4.18
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Rene' Seindal.
PASSED
==> [2020-11-20-16:11:47.316219] test: ensuring m4 example succeeds
==> [2020-11-20-16:11:47.317434] '/Users/Adam/spack/opt/spack/darwin-catalina-x86_64/gcc-10.2.0/m4-1.4.18-qlyhwnrpg6e66gdldgivjps47fyu6gbn/bin/m4' '/Users/Adam/.spack/test/5zpwbxxu43yidobk5y7qwagzxo77jeyx/m4-1.4.18-qlyhwnr/data/m4/hello.m4'

// macro is defined
Hello, World!
PASSED

Information on your system

$ spack debug report

  • Spack: 0.16.0-32-3fbda07a87
  • Python: 3.8.6
  • Platform: darwin-catalina-ivybridge
  • Concretizer: original

Additional information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have searched the issues of this repo and believe this is not a duplicate
  • I have run the failing commands in debug mode and reported the output

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcommandsmacOSstand-alone-testsStand-alone (or smoke) tests for installed packagestriageThe issue needs to be prioritized

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions