Date: Fri, 25 Jun 2021 08:40:04 GMT From: =?utf-8?Q?Stefan E=C3=9Fer?= <se@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 95d3044bbdad - main - sbin/md5: fix test case to not write outside temp directory Message-ID: <202106250840.15P8e4Th073244@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by se: URL: https://cgit.FreeBSD.org/src/commit/?id=95d3044bbdadfca6120a3e7c61c9ebb9a476f369 commit 95d3044bbdadfca6120a3e7c61c9ebb9a476f369 Author: Stefan Eßer <se@FreeBSD.org> AuthorDate: 2021-06-25 08:37:51 +0000 Commit: Stefan Eßer <se@FreeBSD.org> CommitDate: 2021-06-25 08:37:51 +0000 sbin/md5: fix test case to not write outside temp directory The bsd-p-test did create files 1.out .. 8.out in the test directory. This has been fixed and the temporary output files are now written to the temporary directory. MFC after: 3 days --- sbin/md5/tests/bsd-p-test.SH | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/md5/tests/bsd-p-test.SH b/sbin/md5/tests/bsd-p-test.SH index 3677a34b335a..77a725377e2c 100644 --- a/sbin/md5/tests/bsd-p-test.SH +++ b/sbin/md5/tests/bsd-p-test.SH @@ -8,9 +8,9 @@ testloop () { for algorithm in sha512; do for f in %%TESTSBASE%%/sbin/md5/*.inp; do - outbase=%%TESTSBASE%%/sbin/md5/$(basename $f .inp) + outbase=$(basename $f .inp) $algorithm$sum $opt -p < $f > $outbase.out - diff $outbase.$algorithm$sum-p.chk $outbase.out || exitcode=1 + diff %%TESTSBASE%%/sbin/md5/$outbase.$algorithm$sum-p.chk $outbase.out || exitcode=1 done done }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106250840.15P8e4Th073244>