mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-02-12 16:41:04 +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
|
||||
|
||||
|
||||
def run_cmd(cmd):
|
||||
def run_cmd(cmd, **kwargs):
|
||||
completed_process = subprocess.run(cmd, shell=True, text=True,
|
||||
capture_output=True,
|
||||
executable='/bin/bash')
|
||||
executable='/bin/bash', **kwargs)
|
||||
if completed_process.returncode != 0:
|
||||
print(completed_process.stdout)
|
||||
print(completed_process.stderr)
|
||||
|
Loading…
Reference in New Issue
Block a user