uv-python tests: Use #!/bin/sh instead of #!/bin/bash (#11292)

NixOS has (and POSIX mandates) a /bin/sh but not a /bin/bash, so this
fixes tests on NixOS.
This commit is contained in:
Geoffrey Thomas 2025-02-07 10:42:33 -05:00 committed by GitHub
parent 69f1904aeb
commit 21369326ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -292,7 +292,7 @@ mod tests {
fs_err::write(
path,
formatdoc! {r"
#!/bin/bash
#!/bin/sh
echo '{json}'
"},
)?;
@ -314,7 +314,7 @@ mod tests {
fs_err::write(
path,
formatdoc! {r"
#!/bin/bash
#!/bin/sh
echo '{output}' 1>&2
"},
)?;
@ -535,7 +535,7 @@ mod tests {
fs_err::write(
children[0].join(format!("python{}", env::consts::EXE_SUFFIX)),
formatdoc! {r"
#!/bin/bash
#!/bin/sh
echo 'foo'
"},
)?;