From 80390649a00f251c36c22a3783ea98425ccadb6e Mon Sep 17 00:00:00 2001
From: Dilawar Singh <dilawar@subcom.tech>
Date: Fri, 7 Oct 2022 16:39:22 +0530
Subject: [PATCH] temp: Testing the ci pipeline.

---
 tests/test_cli.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tests/test_cli.py b/tests/test_cli.py
index 30ab3b4..89ffb9b 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -1,11 +1,15 @@
 import sys
+import shlex
+from pathlib import Path
 import subprocess
 
 
 def run_command(cmd: str, args: str):
     cmd = f"{sys.executable} -m bitia {cmd} {args}"
-    print(f"Executing `{cmd}`")
-    return subprocess.check_output(cmd)
+    print(f"Executing `{shlex.split(cmd)}`")
+    assert Path(sys.executable).is_file()
+    p = subprocess.run(shlex.split(cmd), capture_output=True)
+    return p.stdout
 
 
 def test_cli_sanity():
-- 
GitLab