1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-13 11:29:46 +03:00

tests: basic pkgrepo tests, clone pmaports (MR 2252)

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-06-13 08:05:17 +02:00 committed by Oliver Smith
parent 25e41ff3f7
commit 3f11fa2500
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
9 changed files with 98 additions and 15 deletions

View file

@ -7,6 +7,7 @@ from pmb import commands
from pmb.types import PathString
from pmb.helpers import run
from pmb.core.context import get_context
import pmb.config
class Log(commands.Command):
clear_log: bool
@ -18,7 +19,7 @@ class Log(commands.Command):
def run(self):
context = get_context()
log_testsuite = context.config.work / "log_testsuite.txt"
log_testsuite = pmb.config.pmb_src / ".pytest_tmp/log_testsuite.txt"
if self.clear_log:
run.user(["truncate", "-s", "0", context.log])