mirror of
https://github.com/kubescape/kubescape.git
synced 2026-02-14 09:59:54 +00:00
adding stdout to smoke tests
This commit is contained in:
@@ -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}"
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user