From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Qw+oWCgs; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTPS id 7460A5A061C for ; Tue, 21 Oct 2025 23:51:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1761083468; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fw4a+wpBtsHphX8gx/7EUvDOPv6lVt1743ZvuG3Gw2k=; b=Qw+oWCgseqaz9jsnLkFKYZyPKIixWSvuJnf0O/KbWjzRXY5wf39Wy+u7tlYSKbdVFMJRxe mm1au3pQrR1IVaixk/VAiiZPFl1WnQl5AdI7PZr9I3ZR9jARPiYkQfXEPlGLO3Rqz8gmOQ P+9ZmloBgaOYS1I5SAN/yiWSeVw/0a0= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-180-95xE1BE_PjCAM2Y9dO-EPg-1; Tue, 21 Oct 2025 17:51:06 -0400 X-MC-Unique: 95xE1BE_PjCAM2Y9dO-EPg-1 X-Mimecast-MFC-AGG-ID: 95xE1BE_PjCAM2Y9dO-EPg_1761083466 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-471168953bdso2118595e9.1 for ; Tue, 21 Oct 2025 14:51:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761083465; x=1761688265; h=content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=fw4a+wpBtsHphX8gx/7EUvDOPv6lVt1743ZvuG3Gw2k=; b=fKNFUeE0mtugqld8+CQXJJtj0F9I5szz7vpr7JrBXgb6bJIErAxAhI5xP2fp18ciHC cQFLDHZoKuRLnFN+GZonI5qWIwDFq5RccEpZ4yKXQM2/L5mwa5Bw+hd2ccXpH+ekKflv FOb6LWQNfJAplMd6LwMi8pcUyUo1Tsx3dBRP+x0FcCrEAqJbENBQdpPGe2mlhyCni9sP 37fVbNoTncS0tpU3jJfOkNG8/ACQLNWUzij+hY3jcTbVozwVUoDXeJ4JAQB6oNZdfbPK iBEQRj6bCS4ozSTaIEDTAlZoxIM/F0nzLRAaEaRDV1mblwc0XE0dOtqltXGZg4cArgsh gjTQ== X-Gm-Message-State: AOJu0YxvUb62qi7+tlRKYAgCCRBxGsEl7sW8ScDxZZN9TT3VrKYpgOgC 27F6Mr7K01/wlcJ+xYnNx96tZP2NY81UKW2VoHjR/imTzKXfH3CK2fE3saOTHSXW5W6asB433/P B5p2rdUCdOfcYB9ce84Bq6d1B1fN5sHssJi3ZAKSFt7X9uDJC422aOQ== X-Gm-Gg: ASbGncsrfOg8mLCqMaYqk/NRChegVBsNRPPF2th3NggGdfaC+DgCkbMCpS+5Lo2FPEy 40auAAIEex2Ye+0Fxbs4kH04mQ98fJY3hWGgJMiFiVMl1eoAuQrWsvePKiGUVrXTJLd26hisrWt onNI951xwNuMfnRGuGKcvtQNMx0KBS5CWVxS7lZCeiXBqKW3+TXuBHs2tlC2K6q65FD1DxqgUHO XpkNvENmcunaHQcVN9/mNI+MHUutSLOvz3BwWnm0j3zC1vwPRjru9MNWcR9ACwbKvv41agGISoM Z9tIdlCvIvqU8thVSke4D2TcLvm5AH6nAZWheNmL1hHxZC8BOkEyxC2yfuRjU1wxrpTfiUzSfmT U6kjAEPjYDg== X-Received: by 2002:a05:600c:3505:b0:46e:59bd:f7e2 with SMTP id 5b1f17b1804b1-475c3fcb2fbmr8306155e9.11.1761083465427; Tue, 21 Oct 2025 14:51:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEMzLJPKZI/5DX9jchVQ59PvAn1LzCJDiAe2IVZXvLdeZ2h1uxT9cF3HEITBLPt4bikTM2l/g== X-Received: by 2002:a05:600c:3505:b0:46e:59bd:f7e2 with SMTP id 5b1f17b1804b1-475c3fcb2fbmr8306045e9.11.1761083465052; Tue, 21 Oct 2025 14:51:05 -0700 (PDT) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [2a10:fc81:a806:d6a9::1]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47496be2eb6sm24534605e9.2.2025.10.21.14.51.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Oct 2025 14:51:04 -0700 (PDT) Date: Tue, 21 Oct 2025 23:51:03 +0200 From: Stefano Brivio To: Yumei Huang Subject: Re: [PATCH] test: Fix the escaping issue in memory/passt test Message-ID: <20251021235103.4496c153@elisabeth> In-Reply-To: <20251015080402.18822-1-yuhuang@redhat.com> References: <20251015080402.18822-1-yuhuang@redhat.com> Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.49; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: y6plw2XUTUgQegpR_Cfa0VYVltmgvtpjBfXrdxEQiXU_1761083466 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: R4YI4GM7NW23ZZCKTUTGBUQS5OIJYYWO X-Message-ID-Hash: R4YI4GM7NW23ZZCKTUTGBUQS5OIJYYWO X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top, david@gibson.dropbear.id.au X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Wed, 15 Oct 2025 16:04:02 +0800 Yumei Huang wrote: > Test memory/passt failed with error "objsize: No such file or > directory" because of an escaping issue. Fix it. Sorry for the delay. I tested the patch and it works for me, it simply adds a \ at the beginning of the line, and that print simply shows results in the test log. The output is not used in any automated way. But I never ran into the issue, so I was looking for an explanation for this: > Link: https://bugs.passt.top/show_bug.cgi?id=155 > Signed-off-by: Yumei Huang > --- > test/memory/passt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/test/memory/passt b/test/memory/passt > index 7e45724..c5142ea 100644 > --- a/test/memory/passt > +++ b/test/memory/passt > @@ -51,7 +51,7 @@ guest sed /proc/slabinfo -ne 's/^\([^ ]* *[^ ]* *[^ ]* *[^ ]*\).*/\\\1/p' > /tmp > guest kill \$(cat /tmp/pid) > guest diff -y --suppress-common-lines /tmp/meminfo.before /tmp/meminfo.after || : > guest nm -td -Sr --size-sort -P /bin/passt.avx2 | head -30 | tee /tmp/nm.size > -guest sed /proc/slabinfo -ne 's/\(.*\).*$/\1/p' | tail -1; (diff -y --suppress-common-lines /tmp/slabinfo.before /tmp/slabinfo.after | sort -grk8) > +guest sed /proc/slabinfo -ne 's/\(.*\).*$/\\\1/p' | tail -1; (diff -y --suppress-common-lines /tmp/slabinfo.before /tmp/slabinfo.after | sort -grk8) Without the \ at the beginning, we have this line: # name and... maybe you have a file in the directory where you run the tests that's called num_objs, or objsize, created as a result of a previous failure (and some other issue), and '