Skip to content

Commit

Permalink
rename log file
Browse files Browse the repository at this point in the history
  • Loading branch information
nagworld9 committed Oct 31, 2023
1 parent dffa667 commit 86edc0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests_e2e/tests/agent_publish/agent_publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ def _get_agent_info(self) -> None:
log.info('Agent info \n%s', stdout)

def _prepare_agent(self) -> None:
log.info("Modifying agent update related config flags")
self._run_remote_test(self._ssh_client, "update-waagent-conf Debug.DownloadNewAgents=y AutoUpdate.GAFamily=Test AutoUpdate.Enabled=y Extensions.Enabled=y", use_sudo=True)
log.info('Updated agent-update DownloadNewAgents GAFamily config flags')
log.info("Modifying agent update related config flags and rename the log file")
self._run_remote_test("sh -c 'agent-service stop && mv /var/log/waagent.log /var/log/waagent.$(date --iso-8601=seconds).log && update-waagent-conf Debug.DownloadNewAgents=y AutoUpdate.GAFamily=Test AutoUpdate.Enabled=y Extensions.Enabled=y'", use_sudo=True)
log.info('Renamed log file and updated agent-update DownloadNewAgents GAFamily config flags')

def _check_update(self) -> None:
log.info("Verifying for agent update status")
Expand Down

0 comments on commit 86edc0d

Please sign in to comment.