mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-17 13:58:29 +00:00
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:
parent
69f1904aeb
commit
21369326ca
2 changed files with 5 additions and 5 deletions
|
@ -1090,7 +1090,7 @@ mod tests {
|
||||||
fs::write(
|
fs::write(
|
||||||
&mocked_interpreter,
|
&mocked_interpreter,
|
||||||
formatdoc! {r"
|
formatdoc! {r"
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
echo '{json}'
|
echo '{json}'
|
||||||
"},
|
"},
|
||||||
)
|
)
|
||||||
|
@ -1109,7 +1109,7 @@ mod tests {
|
||||||
fs::write(
|
fs::write(
|
||||||
&mocked_interpreter,
|
&mocked_interpreter,
|
||||||
formatdoc! {r"
|
formatdoc! {r"
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
echo '{}'
|
echo '{}'
|
||||||
", json.replace("3.12", "3.13")},
|
", json.replace("3.12", "3.13")},
|
||||||
)
|
)
|
||||||
|
|
|
@ -292,7 +292,7 @@ mod tests {
|
||||||
fs_err::write(
|
fs_err::write(
|
||||||
path,
|
path,
|
||||||
formatdoc! {r"
|
formatdoc! {r"
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
echo '{json}'
|
echo '{json}'
|
||||||
"},
|
"},
|
||||||
)?;
|
)?;
|
||||||
|
@ -314,7 +314,7 @@ mod tests {
|
||||||
fs_err::write(
|
fs_err::write(
|
||||||
path,
|
path,
|
||||||
formatdoc! {r"
|
formatdoc! {r"
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
echo '{output}' 1>&2
|
echo '{output}' 1>&2
|
||||||
"},
|
"},
|
||||||
)?;
|
)?;
|
||||||
|
@ -535,7 +535,7 @@ mod tests {
|
||||||
fs_err::write(
|
fs_err::write(
|
||||||
children[0].join(format!("python{}", env::consts::EXE_SUFFIX)),
|
children[0].join(format!("python{}", env::consts::EXE_SUFFIX)),
|
||||||
formatdoc! {r"
|
formatdoc! {r"
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
echo 'foo'
|
echo 'foo'
|
||||||
"},
|
"},
|
||||||
)?;
|
)?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue