Skip to content

Commit

Permalink
Use runcommand instead of remote test
Browse files Browse the repository at this point in the history
  • Loading branch information
maddieford committed Sep 23, 2024
1 parent 60ae8b1 commit 51cd699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests_e2e/tests/log_collector/log_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def run(self):
log.info("Renaming agent log file and modifying log collector conf flags")
setup_script = ("agent-service stop && mv /var/log/waagent.log /var/log/waagent.$(date --iso-8601=seconds).log && "
"update-waagent-conf Logs.Collect=y Debug.EnableCgroupV2ResourceLimiting=y Debug.LogCollectorInitialDelay=60")
self._run_remote_test(ssh_client, f"sh -c '{setup_script}'", use_sudo=True)
ssh_client.run_command(f"sh -c '{setup_script}'", use_sudo=True)
log.info('Renamed log file and updated log collector config flags')

# Wait for log collector to finish uploading logs
Expand Down

0 comments on commit 51cd699

Please sign in to comment.