pytest: Removed -s flag for CI
checks-impure / test (pull_request) Successful in 1m3s Details
checks / test (pull_request) Successful in 2m39s Details

This commit is contained in:
Luis Hebendanz 2023-12-26 18:20:41 +01:00
parent ca265b0c59
commit cb06353451
5 changed files with 6 additions and 12 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
.direnv
***/.hypothesis
out.log
.coverage.*
**/qubeclan
**/testdir

View File

@ -13,7 +13,7 @@
]}"
ROOT=$(git rev-parse --show-toplevel)
cd "$ROOT/pkgs/clan-cli"
nix develop "$ROOT#clan-cli" -c bash -c "TMPDIR=/tmp python -m pytest -m impure -s ./tests $@"
nix develop "$ROOT#clan-cli" -c bash -c "TMPDIR=/tmp python -m pytest -m impure ./tests $@"
'';
runMockApi = pkgs.writeShellScriptBin "run-mock-api" ''

View File

@ -38,8 +38,8 @@ def graphics_options(vm: VmConfig) -> list[str]:
common: list[str] = []
# Check if the version is greater than 8.1.3 to enable virtio audio
if get_qemu_version() > [8, 1, 3]:
common = ["-audio", "driver=pa,model=virtio"]
# if get_qemu_version() > [8, 1, 3]:
common = ["-audio", "driver=pa,model=virtio"]
if vm.wayland:
# fmt: off

View File

@ -133,7 +133,7 @@ python3.pkgs.buildPythonApplication {
cd ./src
export NIX_STATE_DIR=$TMPDIR/nix IN_NIX_SANDBOX=1
${checkPython}/bin/python -m pytest -m "not impure and not with_core" -s ./tests
${checkPython}/bin/python -m pytest -m "not impure and not with_core" ./tests
touch $out
'';
# separate the tests that can never be cached
@ -144,7 +144,7 @@ python3.pkgs.buildPythonApplication {
export CLAN_CORE=${clan-core-path}
export NIX_STATE_DIR=$TMPDIR/nix IN_NIX_SANDBOX=1
${checkPython}/bin/python -m pytest -m "not impure and with_core" -s ./tests
${checkPython}/bin/python -m pytest -m "not impure and with_core" ./tests
touch $out
'';

View File

@ -1,7 +0,0 @@
#!/usr/bin/env bash
set -xeuo pipefail
PID_NIX=$(pgrep --full "python -m pytest" | cut -d " " -f2 | head -n1)
sudo cntr attach "$PID_NIX"