adding stdout to smoke tests

This commit is contained in:
dwertent
2021-11-02 18:59:34 +02:00
parent 9a1b8d7ce2
commit fc4edb12f9
2 changed files with 1 additions and 3 deletions

View File

@@ -1,4 +1,3 @@
from sys import stderr
import subprocess
@@ -8,7 +7,7 @@ def get_exec_from_args(args: list):
def run_command(command):
try:
return f"{subprocess.check_output(command)}"
return f"{subprocess.check_output(command, stderr=subprocess.STDOUT)}"
except Exception as e:
return f"{e}"

View File

@@ -7,7 +7,6 @@ def full_scan(kubescape_exec: str):
return smoke_utils.run_command(command=[kubescape_exec, "scan", "framework", "nsa", os.path.join("..", "*.yaml")])
def run(kubescape_exec: str):
# return
print("Testing E2E yaml files")