From patchwork Wed Aug 28 05:25:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Gao X-Patchwork-Id: 1977589 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=lists.linux.it header.i=@lists.linux.it header.a=rsa-sha256 header.s=picard header.b=B27QYYcw; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=google header.b=a/EcYvib; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WttCd4VW9z1yZd for ; Wed, 28 Aug 2024 15:25:16 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it; i=@lists.linux.it; q=dns/txt; s=picard; t=1724822713; h=to : date : message-id : mime-version : subject : list-id : list-unsubscribe : list-archive : list-post : list-help : list-subscribe : from : reply-to : content-type : content-transfer-encoding : sender : from; bh=6krqtlZgS/fCdKODZ0CHpPaUqs5bcaRh4PYv1IHtE5I=; b=B27QYYcwe3A7TUUqQYv+Ny6GfmdZb4+pVUvu3syMpLtRjjrt4am9qzUlh6vQaQgnIf6vA JAAehHi2Dm71B0sHzII+uF8o2OwVfqct9/MLAeKJ5M78pgtrcqpko5FC+XuVtt1Z629o8Hq DvuMFIpsLJUZor3822sdlGSWCqaLw04= Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 3A28F3D2776 for ; Wed, 28 Aug 2024 07:25:13 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [217.194.8.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id BCE1C3D273C for ; Wed, 28 Aug 2024 07:25:09 +0200 (CEST) Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id 4BD6314060A9 for ; Wed, 28 Aug 2024 07:25:08 +0200 (CEST) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a7aa086b077so563745566b.0 for ; Tue, 27 Aug 2024 22:25:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1724822707; x=1725427507; darn=lists.linux.it; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Fch4J+q3s4pbjvpvQvicDHm3PwvrE7hbw9ySPVmVDp0=; b=a/EcYvib+MFABJDJ5G336RZbc4N11WbiTEJyrOglvlGIc6Or1k1NA5F3Fyk3n2+4lg /BgeCCP0uKZcj5z157q7BITyY944CO0dkUD8rlbvIf+DR8Gy8WWjg3H34FLNlDhaiVSC XKK4xXFkwLFk59WsOGxIBkUNpF+I/shFJfBUpHNwGqWDMcwK27mBJskMUHIPZzRmZBHT 3mzviI9iuhiHBbZKy/xBk1fiqZi8Te0KRGzWPLjAdsG7d3ZTYaYbeN1I6IiW2VJMnw/h j6YQVXdtIqSu67qQhNXgP1LgWLVvi0krObeau1ycXt8Hf1s+OlbKNJxzFE6rNljbDrpt vcNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724822707; x=1725427507; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Fch4J+q3s4pbjvpvQvicDHm3PwvrE7hbw9ySPVmVDp0=; b=eXeGPsBnUexIQRWoEVOLdx7XcWlfgndTQY5RltqZF12sU2H2ehJQZHbuxmLGROo0nn 61Ocgro362cbtYelrZB0ZI3bsKKvtV/GswECxrfjwC2HBrOZlV5/71IJAoWXiRERvoHu h9ZwUUKfN2kSMWNsd/5mZvoTOspOWkbVM+in81yrHa6AnSTYqHOql2RkT4Um/YxmwzOt A8GND26eU1DkwDOZHKaZZjmSs+d1izAsJf62+EdWcZq70oOK7Rvj/VgyY66Trjd3JH6x 1sl3LybVZkLMknGasqdGMLaoaYgwKQokr1hRWp3ccg1F6s/gXdMh/isUsaCXPdGLlP+p fn1g== X-Gm-Message-State: AOJu0Yze8tKCctKaEOPDcvUDpGr/+dxWlThmPtDfHz6nfWYbhBRtAAPc HX6Dw9sJ0SZdwRGXZz+sm7c/gUif7HGW5JLvDB221vusV0jgC3bi/DQ/aIoSTaimfl2FI5mrrTX QJw== X-Google-Smtp-Source: AGHT+IHVirNI2ibAkgXFdWF1P90ult+LoC9a/gvA8tzfYSuiYyglMwvqv4FEssyX6JF04aoqjnJI/A== X-Received: by 2002:a17:907:9447:b0:a86:700f:93c1 with SMTP id a640c23a62f3a-a86a54de4f2mr1093107866b.60.1724822706814; Tue, 27 Aug 2024 22:25:06 -0700 (PDT) Received: from localhost ([202.127.77.110]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a86e582d448sm191503566b.126.2024.08.27.22.25.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Aug 2024 22:25:06 -0700 (PDT) To: ltp@lists.linux.it Date: Wed, 28 Aug 2024 01:25:00 -0400 Message-Id: <20240828052500.2395-1-wegao@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-6.smtp.seeweb.it X-Virus-Scanned: clamav-milter 1.0.3 at in-6.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH v1] isofs.sh: Create group and user before check mount option X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Wei Gao via ltp From: Wei Gao Reply-To: Wei Gao Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Signed-off-by: Wei Gao --- testcases/kernel/fs/iso9660/isofs.sh | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/testcases/kernel/fs/iso9660/isofs.sh b/testcases/kernel/fs/iso9660/isofs.sh index d1a362d97..7ec314d1e 100755 --- a/testcases/kernel/fs/iso9660/isofs.sh +++ b/testcases/kernel/fs/iso9660/isofs.sh @@ -13,10 +13,27 @@ TST_NEEDS_CMDS="mount umount" TST_NEEDS_TMPDIR=1 TST_TESTFUNC=do_test TST_CNT=3 +TST_SETUP="setup" +TST_CLEANUP="cleanup" MAX_DEPTH=3 MAX_DIRS=4 +test_group="abc" + +setup() +{ + if ! getent group $test_group > /dev/null; then + useradd -U $test_group + fi +} + +cleanup() +{ + userdel -f $test_group + groupdel -f $test_group +} + gen_fs_tree() { local cur_path="$1" @@ -69,6 +86,7 @@ do_test() mkdir -p $make_file_sys_dir gen_fs_tree "$make_file_sys_dir" 1 + # Make ISO9660 file system with different options. # Mount the ISO9660 file system with different mount options. for mkisofs_opt in \ @@ -92,8 +110,8 @@ do_test() "loop,block=512,unhide" \ "loop,block=1024,cruft" \ "loop,block=2048,nocompress" \ - "loop,check=strict,map=off,gid=bin,uid=bin" \ - "loop,check=strict,map=acorn,gid=bin,uid=bin" \ + "loop,block=2048,nocompress" \ "loop,check=strict,map=off,gid=$test_group,uid=$test_group" \ + "loop,check=strict,map=acorn,gid=$test_group,uid=$test_group" \ "loop,check=relaxed,map=normal" \ "loop,block=512,unhide,session=2" do