Skip to content

Commit 6eb0bd8

Browse files
committed
Fix command
1 parent 6e4fe6d commit 6eb0bd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/internal/tests/orchestrator/sandbox_memory_integrity_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ echo "Free memory before tmpfs mount: ${FREE_MEM_MB} MB"
5252
echo "Memory to use in integrity test (%d%% of free, min 64MB): ${MEM_MB} MB"
5353
swapoff -a
5454
mount -t tmpfs -o size=${MEM_MB}M tmpfs /mnt
55-
time -v dd if=/dev/urandom of="%s" bs=1M count=${MEM_MB}
55+
/usr/bin/time -v dd if=/dev/urandom of="%s" bs=1M count=${MEM_MB}
5656
USED_MEM_MB_AFTER=$(free -m | awk '/^Mem:/ {print $3}')
5757
echo "Used memory after tmpfs mount and file fill: ${USED_MEM_MB_AFTER} MB"
5858
`, percentageOfFreeMemoryToUse, percentageOfFreeMemoryToUse, percentageOfFreeMemoryToUse, tmpfsFile)
@@ -124,7 +124,7 @@ echo "Used memory after tmpfs mount and file fill: ${USED_MEM_MB_AFTER} MB"
124124
vmBytes := fmt.Sprintf("%dM", freeMemoryMB*int64(percentageOfFreeMemoryToUse)/100)
125125

126126
// Run stress-ng verify
127-
verifyCmd := fmt.Sprintf(`time -v stress-ng --vm 1 --vm-bytes %s --verify -v -t 5s`, vmBytes)
127+
verifyCmd := fmt.Sprintf(`/usr/bin/time -v stress-ng --vm 1 --vm-bytes %s --verify -v -t 5s`, vmBytes)
128128
verifyOutput, err := utils.ExecCommandAsRootWithOutput(t, t.Context(), sbx, envdClient, "bash", "-c", verifyCmd)
129129
require.NoError(t, err)
130130

0 commit comments

Comments
 (0)