Skip to content

Commit b499cdf

Browse files
committed
test: update acceptance test for reading password to use shell
Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
1 parent 0578d79 commit b499cdf

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/acceptance/tests/cli.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ def run_and_enter_password(self, *argv, password=""):
3131
"""Returns a CompletedProcess wrapped in CliResult"""
3232
args = [self.path] + list(argv)
3333
p = subprocess.Popen(
34-
args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE
34+
args,
35+
shell=True,
36+
stdin=subprocess.PIPE,
37+
stdout=subprocess.PIPE,
38+
stderr=subprocess.PIPE,
3539
)
3640
stdout, stderr = p.communicate(input=password.encode() + b"\n")
3741
return CliResult(p, stdout=stdout, stderr=stderr)

0 commit comments

Comments
 (0)