Skip to content

Commit

Permalink
shorten agent log query
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-goldenring committed Jan 13, 2021
1 parent c368be5 commit 69a6fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/run-end-to-end.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def do_test():
print("Failed to get logs from {} pod with result {} on attempt {} of 3".format(shared_test_code.agent_pod_name, log_result, x))
if x == 2:
return False
grep_result = subprocess.run('grep "get_node_slots - crictl called successfully" {} | wc -l | grep -v 0'.format(temporary_agent_log_path), shell=True)
grep_result = subprocess.run(['grep', "get_node_slots - crictl called successfully", temporary_agent_log_path])
if grep_result.returncode != 0:
print("Akri failed to successfully connect to crictl via the CRI socket with return value of {}", grep_result)
# Log information to understand why error occurred
Expand Down

0 comments on commit 69a6fbc

Please sign in to comment.