Skip to content

Commit

Permalink
check disk usage before and after 'go test'
Browse files Browse the repository at this point in the history
ISSUE: ovn-org#4287
JIRA: https://issues.redhat.com/browse/SDN-4786

Signed-off-by: Jamo Luhrsen <jluhrsen@gmail.com>
  • Loading branch information
jluhrsen committed Apr 25, 2024
1 parent a31f23f commit eef6747
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/scripts/e2e-cp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ FOCUS=$(echo ${@:1} | sed 's/ /\\s/g')
pushd e2e

go mod download
sudo df -h
sudo du -a / --exclude="/proc" --exclude="/sys" --exclude="/dev" | sort -rn 2>/dev/null | head -20
go test -test.timeout 180m -v . \
-ginkgo.v \
-ginkgo.focus ${FOCUS:-.} \
Expand All @@ -200,5 +202,10 @@ go test -test.timeout 180m -v . \
-kubeconfig ${KUBECONFIG} \
${NUM_NODES:+"--num-nodes=${NUM_NODES}"} \
${E2E_REPORT_DIR:+"--report-dir=${E2E_REPORT_DIR}"} \
${E2E_REPORT_PREFIX:+"--report-prefix=${E2E_REPORT_PREFIX}"}
${E2E_REPORT_PREFIX:+"--report-prefix=${E2E_REPORT_PREFIX}"} || {
sudo df -h
sudo du -a / --exclude="/proc" --exclude="/sys" --exclude="/dev" | sort -rn | head -20 2>/dev/null
}
sudo df -h
sudo du -a / --exclude="/proc" --exclude="/sys" --exclude="/dev" | sort -rn 2>/dev/null | head -20
popd

0 comments on commit eef6747

Please sign in to comment.