public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Yumei Huang <yuhuang@redhat.com>
To: passt-dev@passt.top, sbrivio@redhat.com
Cc: david@gibson.dropbear.id.au, yuhuang@redhat.com
Subject: [PATCH] test: Update passt.mbuto and passt.mem.mbuto
Date: Tue, 30 Sep 2025 14:29:52 +0800	[thread overview]
Message-ID: <20250930062952.17036-1-yuhuang@redhat.com> (raw)

If /bin is in the PATH of host, /usr/bin may not exist in mbuto
guest, which causes some binaries failing to move to /usr/bin.
As a result, tests fail as binaries not found.

Fix it by adding /usr/bin to DIRS. Also create the same symlink
for mbuto.mem.img.

Link: https://bugs.passt.top/show_bug.cgi?id=158
Fixes: f4729be7a56b("test: Update mbuto profile to fix the symlink of /bin")
Suggested-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Yumei Huang <yuhuang@redhat.com>
---
 test/passt.mbuto     | 2 +-
 test/passt.mem.mbuto | 8 +++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/test/passt.mbuto b/test/passt.mbuto
index 231b9c9..598c254 100755
--- a/test/passt.mbuto
+++ b/test/passt.mbuto
@@ -33,7 +33,7 @@ LINKS="${LINKS:-
 	 dhclient		/usr/sbin/dhclient
 	 sysctl			/usr/sbin/sysctl}"
 
-DIRS="${DIRS} /tmp /usr/sbin /usr/share /var/log /var/lib /etc/ssh /run/sshd /root/.ssh"
+DIRS="${DIRS} /tmp /usr/sbin /usr/bin /usr/share /var/log /var/lib /etc/ssh /run/sshd /root/.ssh"
 
 COPIES="${COPIES} small.bin,/root/small.bin medium.bin,/root/medium.bin big.bin,/root/big.bin rampstream,/bin/rampstream rampstream-check.sh,/bin/rampstream-check.sh"
 
diff --git a/test/passt.mem.mbuto b/test/passt.mem.mbuto
index 532eae0..7554a43 100755
--- a/test/passt.mem.mbuto
+++ b/test/passt.mem.mbuto
@@ -12,7 +12,7 @@
 
 PROGS="${PROGS:-ash,dash,bash chmod ip mount insmod mkdir ln cat chmod modprobe
        grep mknod sed chown sleep bc ls ps mount unshare chroot cp kill diff
-       head tail sort tr tee cut nm which switch_root}"
+       head tail sort tr tee cut nm which switch_root mv rm}"
 
 KMODS="${KMODS:- dummy}"
 
@@ -22,12 +22,14 @@ LINKS="${LINKS:-
 	 ash,dash,bash		/init
 	 ash,dash,bash		/bin/sh}"
 
-DIRS="${DIRS} /tmp /sbin"
+DIRS="${DIRS} /tmp /sbin /usr/bin"
 
 COPIES="${COPIES} ../passt.avx2,/bin/passt.avx2"
 
 FIXUP="${FIXUP}"'
-ln -s /bin /usr/bin
+mv /bin/* /usr/bin || :
+rm -rf /bin
+ln -s /usr/bin /bin
 chmod 777 /tmp
 sh +m
 '
-- 
2.47.0


             reply	other threads:[~2025-09-30  6:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-30  6:29 Yumei Huang [this message]
2025-10-01  0:31 ` David Gibson
2025-10-01  0:34   ` David Gibson
2025-10-06  8:31   ` Stefano Brivio
2025-10-07  3:58     ` David Gibson
2025-10-06 22:31 ` Stefano Brivio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250930062952.17036-1-yuhuang@redhat.com \
    --to=yuhuang@redhat.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=passt-dev@passt.top \
    --cc=sbrivio@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).