forked from Mirror/pmbootstrap
test: drop args from run (MR 2252)
Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
05c86be11c
commit
52cf0e0fe3
14 changed files with 48 additions and 48 deletions
|
@ -33,16 +33,16 @@ def test_shell_escape(args: PmbArgs):
|
|||
"hello world\n": ["printf", "%s world\n", "hello"]}
|
||||
for expected, cmd in cmds.items():
|
||||
copy = list(cmd)
|
||||
core = pmb.helpers.run_core.core(args, str(cmd), cmd,
|
||||
core = pmb.helpers.run_core.core(str(cmd), cmd,
|
||||
output_return=True)
|
||||
assert expected == core
|
||||
assert cmd == copy
|
||||
|
||||
user = pmb.helpers.run.user(args, cmd, output_return=True)
|
||||
user = pmb.helpers.run.user(cmd, output_return=True)
|
||||
assert expected == user
|
||||
assert cmd == copy
|
||||
|
||||
root = pmb.helpers.run.root(args, cmd, output_return=True)
|
||||
root = pmb.helpers.run.root(cmd, output_return=True)
|
||||
assert expected == root
|
||||
assert cmd == copy
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue