test: patch the interpreter instead of invoking python directly
This commit is contained in:
parent
7007e9d5f6
commit
30a374ee03
|
@ -43,6 +43,7 @@ stdenv.mkDerivation {
|
|||
'';
|
||||
passthru.tests.unit =
|
||||
runCommand "e11sync-test" {
|
||||
src = self;
|
||||
buildInputs = [
|
||||
python3Packages.django_5
|
||||
python3Packages.django-compressor
|
||||
|
@ -50,9 +51,11 @@ stdenv.mkDerivation {
|
|||
dart-sass
|
||||
];
|
||||
} ''
|
||||
mkdir -p $out
|
||||
cd ${self}/app
|
||||
unpackPhase
|
||||
patchShebangs --build $sourceRoot/app/manage.py
|
||||
cd $sourceRoot
|
||||
export GEOIP_PATH="${geoip-archive}"
|
||||
${python3}/bin/python3 ./manage.py test
|
||||
app/manage.py test app
|
||||
mkdir -p $out
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue