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:
@@ -1090,7 +1090,7 @@ mod tests {
|
||||
fs::write(
|
||||
&mocked_interpreter,
|
||||
formatdoc! {r"
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
echo '{json}'
|
||||
"},
|
||||
)
|
||||
@@ -1109,7 +1109,7 @@ mod tests {
|
||||
fs::write(
|
||||
&mocked_interpreter,
|
||||
formatdoc! {r"
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
echo '{}'
|
||||
", json.replace("3.12", "3.13")},
|
||||
)
|
||||
|
||||
@@ -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'
|
||||
"},
|
||||
)?;
|
||||
|
||||
Reference in New Issue
Block a user