Tests: reconfigure pytest test folder after moving it into clan_cli
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
# this disables dynamic dependency loading in clan-cli
|
||||
export CLAN_NO_DYNAMIC_DEPS=1
|
||||
|
||||
nix develop "$ROOT#clan-cli" -c bash -c "TMPDIR=/tmp python -m pytest -m impure ./tests $@"
|
||||
nix develop "$ROOT#clan-cli" -c bash -c "TMPDIR=/tmp python -m pytest -m impure ./clan_cli/tests $@"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ pythonRuntime.pkgs.buildPythonApplication {
|
||||
echo "STARTING ..."
|
||||
export WEBVIEW_LIB_DIR="${webview-lib}/lib"
|
||||
export NIX_STATE_DIR=$TMPDIR/nix IN_NIX_SANDBOX=1
|
||||
python -m pytest -s -m "not impure" ./tests
|
||||
python -m pytest -s -m "not impure" ./clan_cli/tests
|
||||
touch $out
|
||||
'';
|
||||
};
|
||||
|
||||
@@ -156,7 +156,7 @@ pythonRuntime.pkgs.buildPythonApplication {
|
||||
# limit build cores to 16
|
||||
jobs="$((NIX_BUILD_CORES>16 ? 16 : NIX_BUILD_CORES))"
|
||||
|
||||
python -m pytest -m "not impure and not with_core" -n $jobs ./tests
|
||||
python -m pytest -m "not impure and not with_core" -n $jobs ./clan_cli/tests
|
||||
touch $out
|
||||
'';
|
||||
}
|
||||
@@ -209,7 +209,7 @@ pythonRuntime.pkgs.buildPythonApplication {
|
||||
# limit build cores to 16
|
||||
jobs="$((NIX_BUILD_CORES>16 ? 16 : NIX_BUILD_CORES))"
|
||||
|
||||
python -m pytest -m "not impure and with_core" ./tests -n $jobs
|
||||
python -m pytest -m "not impure and with_core" ./clan_cli/tests -n $jobs
|
||||
touch $out
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user