Skip to content

Commit

Permalink
[ci]: gzip the vm image disk and memdmp (sonic-net#7131)
Browse files Browse the repository at this point in the history
Signed-off-by: Guohan Lu <lguohan@gmail.com>
  • Loading branch information
lguohan authored and raphaelt-nvidia committed May 13, 2021
1 parent 177e56a commit 5e1a69c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .azure-pipelines/run-test-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ steps:
virsh -c qemu:///system dumpxml ${{ parameters.dut }} > $(Build.ArtifactStagingDirectory)/kvmdump/${{ parameters.dut }}.xml
img=$(virsh -c qemu:///system domblklist ${{ parameters.dut }} | grep vda | awk '{print $2}')
cp $img $(Build.ArtifactStagingDirectory)/kvmdump/${{ parameters.dut }}.img
gzip $(Build.ArtifactStagingDirectory)/kvmdump/${{ parameters.dut }}.img
sudo gzip $(Build.ArtifactStagingDirectory)/kvmdump/${{ parameters.dut }}.memdmp
virsh -c qemu:///system undefine ${{ parameters.dut }}
fi
Expand Down

0 comments on commit 5e1a69c

Please sign in to comment.