Skip to content

Commit

Permalink
use sudo when getting logs in e2e tests (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-goldenring authored Apr 19, 2021
1 parent 374bfb6 commit 7c093c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/shared_test_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ def get_test_version():

def save_agent_and_controller_logs(namespace="default"):
kubectl_cmd = get_kubectl_command()
os.system("{} logs {} --namespace={} >> {}".format(kubectl_cmd,
os.system("sudo {} logs {} --namespace={} >> {}".format(kubectl_cmd,
agent_pod_name,
namespace,
AGENT_LOG_PATH))
os.system("{} logs {} --namespace={} >> {}".format(kubectl_cmd,
os.system("sudo {} logs {} --namespace={} >> {}".format(kubectl_cmd,
controller_pod_name,
namespace,
CONTROLLER_LOG_PATH))
Expand Down

0 comments on commit 7c093c9

Please sign in to comment.