mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-02-14 17:39:12 +01:00
Specs: run_cmd() add **kwargs
This commit is contained in:
parent
d1f0d6f7e7
commit
0f23baa647
@ -4,10 +4,10 @@ from mamba import description, context, it
|
|||||||
from expects import expect, equal
|
from expects import expect, equal
|
||||||
|
|
||||||
|
|
||||||
def run_cmd(cmd):
|
def run_cmd(cmd, **kwargs):
|
||||||
completed_process = subprocess.run(cmd, shell=True, text=True,
|
completed_process = subprocess.run(cmd, shell=True, text=True,
|
||||||
capture_output=True,
|
capture_output=True,
|
||||||
executable='/bin/bash')
|
executable='/bin/bash', **kwargs)
|
||||||
if completed_process.returncode != 0:
|
if completed_process.returncode != 0:
|
||||||
print(completed_process.stdout)
|
print(completed_process.stdout)
|
||||||
print(completed_process.stderr)
|
print(completed_process.stderr)
|
||||||
|
Loading…
Reference in New Issue
Block a user