From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] fs/iso9660: bugfix for iso9660/isofs.sh
Date: Tue, 6 Apr 2021 12:35:54 +0200 [thread overview]
Message-ID: <YGw5inZ09uZY2uRs@pevik> (raw)
In-Reply-To: <20210402031934.14615-1-zhanglianjie@uniontech.com>
Hi,
...
> Currently in Debian, only the package genisoimage in sid and bullseye contains mkisofs,
> and there is no deb package of mkisofs in architectures such as mips. In addition,
> this patch increases compatibility and is better than the previous one.
Well, bullseye is stable. But ok, some people might care about oldstable (we
test it built LTP in Travis) and even oldoldstable.
> It is necessary to modify it.
> Reference: https://packages.debian.org/search?suite=sid&searchon=contents&keywords=mkisofs
> According to your suggestion, the revised patch:
> ---
> testcases/kernel/fs/iso9660/isofs.sh | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
> diff --git a/testcases/kernel/fs/iso9660/isofs.sh b/testcases/kernel/fs/iso9660/isofs.sh
> index 9de3f7cdc..1da3a398f 100755
> --- a/testcases/kernel/fs/iso9660/isofs.sh
> +++ b/testcases/kernel/fs/iso9660/isofs.sh
> @@ -12,6 +12,11 @@
> TST_NEEDS_CMDS="mkisofs"
> TST_NEEDS_TMPDIR=1
> TST_TESTFUNC=do_test
> +if ! which mkisofs >/dev/null 2>&1; then
> + TST_NEEDS_CMDS="genisoimage"
> +fi
> +MKISOFS_CMD=$TST_NEEDS_CMDS
Actually, this depends on which (take look on tst_cmd_available(), it also uses
command and trying to use which only if missing). And also it's misleading to
suggest to use only genisoimage.
Although for our documentation ("docparse"), it'd be better to use
TST_NEEDS_CMDS, until (if ever) shell API supports logical OR (e.g.
TST_NEEDS_CMDS="mkisofs|genisoimage") it'd be better to avoid TST_NEEDS_CMDS and
decide in the setup. Thus if you don't mind I'll merge this fix with you as an author:
setup()
{
if ! tst_cmd_available mkisofs && ! tst_cmd_available genisoimage; then
tst_brk TCONF "please install mkisofs or genisoimage"
fi
}
> @@ -56,7 +61,7 @@ do_test() {
> "-allow-lowercase -allow-multidot -iso-level 3 -f -l -D -J -allow-leading-dots -R"
> do
> rm -f isofs.iso
> - EXPECT_PASS mkisofs -o isofs.iso -quiet $mkisofs_opt $make_file_sys_dir 2\> /dev/null \
> + EXPECT_PASS $MKISOFS_CMD -o isofs.iso -quiet $mkisofs_opt $make_file_sys_dir 2\> /dev/null \
Kind regards,
Petr
next prev parent reply other threads:[~2021-04-06 10:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-02 3:19 [LTP] [PATCH] fs/iso9660: bugfix for iso9660/isofs.sh zhanglianjie
2021-04-06 10:35 ` Petr Vorel [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-03-26 1:41 zhanglianjie
2021-04-01 11:15 ` Petr Vorel
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=YGw5inZ09uZY2uRs@pevik \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox