forked from Mirror/pmbootstrap
tests: basic pkgrepo tests, clone pmaports (MR 2252)
Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
25e41ff3f7
commit
3f11fa2500
9 changed files with 98 additions and 15 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue