Skip to content

Commit

Permalink
Add cleanup phase for Oracle19c databases.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 559868447
  • Loading branch information
jellyfishcake authored and copybara-github committed Sep 16, 2023
1 parent da82c21 commit 16b9017
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions perfkitbenchmarker/vm_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,3 +745,10 @@ def CreateRemoteFile(vm, file_contents, file_path):
parent_dir = posixpath.dirname(file_path)
vm.RemoteCommand(f'[ -d {parent_dir} ] || mkdir -p {parent_dir}')
vm.PushFile(tf.name, file_path)


def ReadLocalFile(filename: str) -> str:
"""Read the local file."""
file_path = posixpath.join(GetTempDir(), filename)
stdout, _, _ = IssueCommand(['cat', file_path])
return stdout

0 comments on commit 16b9017

Please sign in to comment.