executet 'ruff format --check .'
Some checks failed
Mark stable commit / test-unit (push) Has been cancelled
Mark stable commit / test-integration (push) Has been cancelled
Mark stable commit / test-env-virtual (push) Has been cancelled
Mark stable commit / test-env-nix (push) Has been cancelled
Mark stable commit / test-e2e (push) Has been cancelled
Mark stable commit / test-virgin-user (push) Has been cancelled
Mark stable commit / test-virgin-root (push) Has been cancelled
Mark stable commit / lint-shell (push) Has been cancelled
Mark stable commit / lint-python (push) Has been cancelled
Mark stable commit / mark-stable (push) Has been cancelled
Some checks failed
Mark stable commit / test-unit (push) Has been cancelled
Mark stable commit / test-integration (push) Has been cancelled
Mark stable commit / test-env-virtual (push) Has been cancelled
Mark stable commit / test-env-nix (push) Has been cancelled
Mark stable commit / test-e2e (push) Has been cancelled
Mark stable commit / test-virgin-user (push) Has been cancelled
Mark stable commit / test-virgin-root (push) Has been cancelled
Mark stable commit / lint-shell (push) Has been cancelled
Mark stable commit / lint-python (push) Has been cancelled
Mark stable commit / mark-stable (push) Has been cancelled
This commit is contained in:
@@ -24,9 +24,7 @@ import unittest
|
||||
|
||||
|
||||
# Resolve project root (the repo where flake.nix lives, e.g. /src)
|
||||
PROJECT_ROOT = os.path.abspath(
|
||||
os.path.join(os.path.dirname(__file__), "..", "..")
|
||||
)
|
||||
PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))
|
||||
|
||||
|
||||
def _run_cmd(cmd: list[str]) -> subprocess.CompletedProcess:
|
||||
@@ -69,13 +67,18 @@ class TestNixBuildPkgmgrAllDistros(unittest.TestCase):
|
||||
_run_cmd(["id"])
|
||||
|
||||
# --- nix build .#pkgmgr -L ---
|
||||
proc = _run_cmd([
|
||||
"nix",
|
||||
"--option", "sandbox", "false",
|
||||
"build", ".#pkgmgr",
|
||||
"-L",
|
||||
])
|
||||
|
||||
proc = _run_cmd(
|
||||
[
|
||||
"nix",
|
||||
"--option",
|
||||
"sandbox",
|
||||
"false",
|
||||
"build",
|
||||
".#pkgmgr",
|
||||
"-L",
|
||||
]
|
||||
)
|
||||
|
||||
if proc.returncode != 0:
|
||||
raise AssertionError(
|
||||
"nix build .#pkgmgr -L failed inside the test container.\n"
|
||||
|
||||
Reference in New Issue
Block a user