python3Packages.tempest: use correct interpreter

main
Robert Schütz 2 years ago
parent df37224921
commit 30078d8e89
  1. 6
      pkgs/development/python-modules/tempest/default.nix

@ -24,7 +24,7 @@
, hacking , hacking
, oslotest , oslotest
, bash , bash
, python3 , python
}: }:
buildPythonApplication rec { buildPythonApplication rec {
@ -76,8 +76,8 @@ buildPythonApplication rec {
# Tests expect these applications available as such. # Tests expect these applications available as such.
mkdir -p bin mkdir -p bin
export PATH="$PWD/bin:$PATH" export PATH="$PWD/bin:$PATH"
printf '#!${bash}/bin/bash\nexec ${python3.interpreter} -m tempest.cmd.main "$@"\n' > bin/tempest printf '#!${bash}/bin/bash\nexec ${python.interpreter} -m tempest.cmd.main "$@"\n' > bin/tempest
printf '#!${bash}/bin/bash\nexec ${python3.interpreter} -m tempest.cmd.subunit_describe_calls "$@"\n' > bin/subunit-describe-calls printf '#!${bash}/bin/bash\nexec ${python.interpreter} -m tempest.cmd.subunit_describe_calls "$@"\n' > bin/subunit-describe-calls
chmod +x bin/* chmod +x bin/*
stestr --test-path tempest/tests run -e <(echo " stestr --test-path tempest/tests run -e <(echo "

Loading…
Cancel
Save