From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F3142D8DB5 for ; Sat, 7 Feb 2026 04:35:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770438945; cv=none; b=lVXGO8VGQO1s9YlslnOAdBxxj8w/9ElkWQPc6FUAq50BHI7XhVBQH3eCn58nvRUgXDs6rYkRHdQaTbM8aegYAHm9Sxg6O3mSFS0TndTsttQSTMM+BwjiTMPFM8ulLY9iRcDS+4SeySczYgWcxG9//xIsTCmk6WDryTjb5ebxUu4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770438945; c=relaxed/simple; bh=Vk49zraOuUFjhmucyb/6tk3mylj5AHUrVAN3nvXAUg4=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ldYYIyGPrO75qMIGYeV1HKuPGXvptHxilZjRNqxZRzVj9jvHq2+W3c05UwFBuN8S4Wz7/YldXLdqZDnP7fNdQuDsplyZPl2o50dVZeKgU80JywKJh3k8pkXAZ8sFr6QG7Fk/0PBRb4RBJJO5hsNnbABSL/B4LrXIyUU5quHk2Jc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=jVbODMK0; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=jVbODMK0; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="jVbODMK0"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="jVbODMK0" Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 548635BCCE for ; Sat, 7 Feb 2026 04:35:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1770438943; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SLJTFnYJzhZuH9yEyRLH31UzxS3SgnovtUU6qPR5uFk=; b=jVbODMK00LRk8/EV7xijS5SminZvEV6tv77oyZIogw1eo+AkMRGOzri8EiDS8QmBv1fgdD hLp3f3n2tydJASynnIsh8osB6Eg8bEGSifpgW5oYAsdUs3SjCQGBBSZboeiqR3bn+culOk 9F7wTsTMl6fTa6tfMqFrS3YWzcaUQfI= Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1770438943; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SLJTFnYJzhZuH9yEyRLH31UzxS3SgnovtUU6qPR5uFk=; b=jVbODMK00LRk8/EV7xijS5SminZvEV6tv77oyZIogw1eo+AkMRGOzri8EiDS8QmBv1fgdD hLp3f3n2tydJASynnIsh8osB6Eg8bEGSifpgW5oYAsdUs3SjCQGBBSZboeiqR3bn+culOk 9F7wTsTMl6fTa6tfMqFrS3YWzcaUQfI= Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 84A443EA63 for ; Sat, 7 Feb 2026 04:35:42 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id CJKzER7Bhmm0LQAAD6G6ig (envelope-from ) for ; Sat, 07 Feb 2026 04:35:42 +0000 From: Qu Wenruo To: linux-btrfs@vger.kernel.org Subject: [PATCH] btrfs-progs: tests: output the directory path for missing custom script Date: Sat, 7 Feb 2026 15:05:23 +1030 Message-ID: X-Mailer: git-send-email 2.52.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.80 X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; FUZZY_RATELIMITED(0.00)[rspamd.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,suse.com:mid,suse.com:email]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[linux-btrfs@vger.kernel.org]; RCVD_TLS_ALL(0.00)[] X-Spam-Level: X-Spam-Flag: NO Message-ID: <20260207043523.1DAqrQejKQJwdEoNS5YY3AB6UKEcleleiAQUn4N0Gn0@z> I hit a mkfs failure locally where I reverted the commit which introduced the mkfs/040 test case. However that directory didn't got removed as there are local image files left due to previous test failure. This results a very confusing error message: [TEST/mkfs] 039-zoned-profiles custom test script not found or lacks execution permission make: *** [Makefile:557: test-mkfs] Error 1 The reality is, the failure is caused by 040 not 039, but the error message lacks the proper info on it. Add the directory name for every test script, so that now the failure will be more readable: TEST mkfs-tests.sh [TEST/mkfs] 001-basic-profiles custom test script not found or lacks execution permission ("/home/adam/btrfs-progs/tests/mkfs-tests/002-empty-dir-to-fail") make: *** [Makefile:557: test-mkfs] Error 1 Signed-off-by: Qu Wenruo --- tests/cli-tests.sh | 2 +- tests/convert-tests.sh | 2 +- tests/fuzz-tests.sh | 2 +- tests/misc-tests.sh | 2 +- tests/mkfs-tests.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/cli-tests.sh b/tests/cli-tests.sh index 3a13cf70ffb0..55dd559c2694 100755 --- a/tests/cli-tests.sh +++ b/tests/cli-tests.sh @@ -75,7 +75,7 @@ do _fail "test failed for case $name" fi else - _fail "custom test script not found or lacks execution permission" + _fail "custom test script not found or lacks execution permission (\"$i\")" fi cd "$TEST_TOP" done diff --git a/tests/convert-tests.sh b/tests/convert-tests.sh index f11adebd4edf..157a8118e79d 100755 --- a/tests/convert-tests.sh +++ b/tests/convert-tests.sh @@ -85,7 +85,7 @@ run_one_test() { fi check_test_results "$RESULTS" "$testname" else - _fail "custom test script not found or lacks execution permission" + _fail "custom test script not found or lacks execution permission (\"$testdir\")" fi } diff --git a/tests/fuzz-tests.sh b/tests/fuzz-tests.sh index 666f245836fd..52a2802f0e35 100755 --- a/tests/fuzz-tests.sh +++ b/tests/fuzz-tests.sh @@ -74,7 +74,7 @@ do _fail "test failed for case $(basename $i)" fi else - _not_run "custom test script not found or lacks execution permission" + _not_run "custom test script not found or lacks execution permission (\"$i\")" fi cd "$TEST_TOP" done diff --git a/tests/misc-tests.sh b/tests/misc-tests.sh index 2cb8d6081c17..28756c2acde7 100755 --- a/tests/misc-tests.sh +++ b/tests/misc-tests.sh @@ -82,7 +82,7 @@ do fi check_test_results "$RESULTS" "$name" else - _fail "custom test script not found or lacks execution permission" + _fail "custom test script not found or lacks execution permission (\"$i\")" fi cd "$TEST_TOP" done diff --git a/tests/mkfs-tests.sh b/tests/mkfs-tests.sh index 55d1dc7ac3e9..6ab1fb77d62b 100755 --- a/tests/mkfs-tests.sh +++ b/tests/mkfs-tests.sh @@ -77,7 +77,7 @@ do fi check_test_results "$RESULTS" "$name" else - _fail "custom test script not found or lacks execution permission" + _fail "custom test script not found or lacks execution permission (\"$i\")" fi cd "$TEST_TOP" done -- 2.52.0