aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-11-04 11:51:30 +0100
committerStefano Brivio <sbrivio@redhat.com>2022-11-04 12:04:32 +0100
commite308018bbe2a42a9ad9af5302fe855eee508acc2 (patch)
treef63a6bc843b882900a70f48f8807b03c500a9588
parent11efaefa1edc340fc3948726893ff81630370744 (diff)
downloadpasst-e308018bbe2a42a9ad9af5302fe855eee508acc2.tar
passt-e308018bbe2a42a9ad9af5302fe855eee508acc2.tar.gz
passt-e308018bbe2a42a9ad9af5302fe855eee508acc2.tar.bz2
passt-e308018bbe2a42a9ad9af5302fe855eee508acc2.tar.lz
passt-e308018bbe2a42a9ad9af5302fe855eee508acc2.tar.xz
passt-e308018bbe2a42a9ad9af5302fe855eee508acc2.tar.zst
passt-e308018bbe2a42a9ad9af5302fe855eee508acc2.zip
test/memory/passt: Change passt.avx2 path to /bin in test itself2022_11_04.e308018
Now that we install the binary in /bin, and we have a link from /usr/bin, change the path in the test itself as well. Otherwise it works with bash but not with dash for some reason. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--test/memory/passt4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/memory/passt b/test/memory/passt
index fa89821..3da6235 100644
--- a/test/memory/passt
+++ b/test/memory/passt
@@ -44,13 +44,13 @@ endef
def start_stop_diff
guest sed /proc/slabinfo -ne 's/^\([^ ]* *[^ ]* *[^ ]* *[^ ]*\).*/\\\1/p' > /tmp/slabinfo.before
guest cat /proc/meminfo > /tmp/meminfo.before
-guest /usr/bin/passt.avx2 -l /tmp/log -s /tmp/sock -P /tmp/pid __OPTS__ --netns-only
+guest /bin/passt.avx2 -l /tmp/log -s /tmp/sock -P /tmp/pid __OPTS__ --netns-only
sleep 2
guest cat /proc/meminfo > /tmp/meminfo.after
guest sed /proc/slabinfo -ne 's/^\([^ ]* *[^ ]* *[^ ]* *[^ ]*\).*/\\\1/p' > /tmp/slabinfo.after
guest kill \$(cat /tmp/pid)
guest diff -y --suppress-common-lines /tmp/meminfo.before /tmp/meminfo.after || :
-guest nm -td -Sr --size-sort -P /usr/bin/passt.avx2 | head -30 | tee /tmp/nm.size
+guest nm -td -Sr --size-sort -P /bin/passt.avx2 | head -30 | tee /tmp/nm.size
guest sed /proc/slabinfo -ne 's/\(.*<objsize>\).*$/\1/p' | tail -1; (diff -y --suppress-common-lines /tmp/slabinfo.before /tmp/slabinfo.after | sort -grk8)
endef