aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-09-17 01:17:04 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-09-22 16:53:35 +0200
commitae51d2dac108e8daa475e4d6c1a6a5ebbb3fa759 (patch)
treefa72b16c4fe9d58da9adebc4f7c148a950bfa5db
parent8627a2da5207dce206a7b43328d9e51e66d4e6b1 (diff)
downloadpasst-ae51d2dac108e8daa475e4d6c1a6a5ebbb3fa759.tar
passt-ae51d2dac108e8daa475e4d6c1a6a5ebbb3fa759.tar.gz
passt-ae51d2dac108e8daa475e4d6c1a6a5ebbb3fa759.tar.bz2
passt-ae51d2dac108e8daa475e4d6c1a6a5ebbb3fa759.tar.lz
passt-ae51d2dac108e8daa475e4d6c1a6a5ebbb3fa759.tar.xz
passt-ae51d2dac108e8daa475e4d6c1a6a5ebbb3fa759.tar.zst
passt-ae51d2dac108e8daa475e4d6c1a6a5ebbb3fa759.zip
test/perf: Check for /sbin/sysctl with which(1), not simply sysctl
Otherwise, we're depending on having /sbin in $PATH. For some reason I didn't completely grasp, with the new command dispatch mechanism that's not the case anymore, even if I have /sbin in $PATH in the parent shell. Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r--test/perf/passt_tcp4
-rw-r--r--test/perf/passt_udp2
-rw-r--r--test/perf/pasta_tcp2
3 files changed, 4 insertions, 4 deletions
diff --git a/test/perf/passt_tcp b/test/perf/passt_tcp
index 45095b6..f0cfa1b 100644
--- a/test/perf/passt_tcp
+++ b/test/perf/passt_tcp
@@ -11,8 +11,8 @@
# Copyright (c) 2021 Red Hat GmbH
# Author: Stefano Brivio <sbrivio@redhat.com>
-gtools sysctl ip jq nproc seq sleep iperf3 tcp_rr tcp_crr # From neper
-nstools sysctl ip jq nproc seq sleep iperf3 tcp_rr tcp_crr
+gtools /sbin/sysctl ip jq nproc seq sleep iperf3 tcp_rr tcp_crr # From neper
+nstools /sbin/sysctl ip jq nproc seq sleep iperf3 tcp_rr tcp_crr
htools bc head sed seq
# In this setup, virtio_net TX queue sometimes hangs, still under investigation
diff --git a/test/perf/passt_udp b/test/perf/passt_udp
index d199523..80731d1 100644
--- a/test/perf/passt_udp
+++ b/test/perf/passt_udp
@@ -11,7 +11,7 @@
# Copyright (c) 2021 Red Hat GmbH
# Author: Stefano Brivio <sbrivio@redhat.com>
-gtools sysctl ip jq nproc sleep iperf3 udp_rr # From neper
+gtools /sbin/sysctl ip jq nproc sleep iperf3 udp_rr # From neper
nstools ip jq sleep iperf3 udp_rr
htools bc head sed
diff --git a/test/perf/pasta_tcp b/test/perf/pasta_tcp
index 4c19364..602ce52 100644
--- a/test/perf/pasta_tcp
+++ b/test/perf/pasta_tcp
@@ -12,7 +12,7 @@
# Author: Stefano Brivio <sbrivio@redhat.com>
htools head ip seq bc sleep iperf3 tcp_rr tcp_crr jq sed
-nstools sysctl nproc ip seq sleep iperf3 tcp_rr tcp_crr jq sed
+nstools /sbin/sysctl nproc ip seq sleep iperf3 tcp_rr tcp_crr jq sed
test pasta: throughput and latency (local connections)