summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkus-ferrell <116021216+markus-ferrell@users.noreply.github.com>2023-06-15 14:40:09 -0400
committerGitHub <noreply@github.com>2023-06-15 11:40:09 -0700
commit1df4afb53f3b9bb9ac8e8df5e9a60bc8f2767d44 (patch)
tree8c8883cfcba3025298e804a9dd16e6cffd09a2c7
parent4991f0e4848771c6f911e5a9e60f4604119d03f2 (diff)
downloadspack-1df4afb53f3b9bb9ac8e8df5e9a60bc8f2767d44.tar.gz
spack-1df4afb53f3b9bb9ac8e8df5e9a60bc8f2767d44.tar.bz2
spack-1df4afb53f3b9bb9ac8e8df5e9a60bc8f2767d44.tar.xz
spack-1df4afb53f3b9bb9ac8e8df5e9a60bc8f2767d44.zip
Enable build system guess tests on windows (#36971)
-rw-r--r--lib/spack/spack/cmd/create.py2
-rw-r--r--lib/spack/spack/test/build_system_guess.py4
2 files changed, 1 insertions, 5 deletions
diff --git a/lib/spack/spack/cmd/create.py b/lib/spack/spack/cmd/create.py
index 3582877ee1..7d7444a9a0 100644
--- a/lib/spack/spack/cmd/create.py
+++ b/lib/spack/spack/cmd/create.py
@@ -715,7 +715,7 @@ class BuildSystemGuesser:
output = tar("--exclude=*/*/*", "-tf", stage.archive_file, output=str)
except ProcessError:
output = ""
- lines = output.split("\n")
+ lines = output.splitlines()
# Determine the build system based on the files contained
# in the archive.
diff --git a/lib/spack/spack/test/build_system_guess.py b/lib/spack/spack/test/build_system_guess.py
index ec14fa01ee..bc1ad6aa1a 100644
--- a/lib/spack/spack/test/build_system_guess.py
+++ b/lib/spack/spack/test/build_system_guess.py
@@ -3,8 +3,6 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
-import sys
-
import pytest
import spack.cmd.create
@@ -12,8 +10,6 @@ import spack.stage
import spack.util.executable
import spack.util.url as url_util
-pytestmark = pytest.mark.skipif(sys.platform == "win32", reason="does not run on windows")
-
@pytest.fixture(
scope="function",