Refreshing test-installed.patch.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
5b11395853
commit
03eb60b044
2 changed files with 7 additions and 9 deletions
30
debian/patches/debian/0008-test-installed.patch
vendored
Normal file
30
debian/patches/debian/0008-test-installed.patch
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
Author: Felix Lechner <felix.lechner@lease-up.com>
|
||||
Description: Test installed files (Closes: #872118).
|
||||
The test suite seems to check the executable bit on the local build product
|
||||
'mdadm' but runs all programs from the system PATH. This change should test
|
||||
the installed version.
|
||||
.
|
||||
I believe this change tests the installed version, but that hypothesis is not
|
||||
supported by much else. The autopkgtest restriction isolation-machine made it
|
||||
difficult so far to run the test suite anywhere.
|
||||
.
|
||||
The entire setup is untested and may require further modification in order to
|
||||
function.
|
||||
.
|
||||
Incorporates a suggestion from the fdisk maintainer to specify the fdisk
|
||||
prerequisite explicitly.
|
||||
|
||||
diff -Naurp mdadm.orig/tests/func.sh mdadm/tests/func.sh
|
||||
--- mdadm.orig/tests/func.sh
|
||||
+++ mdadm/tests/func.sh
|
||||
@@ -101,10 +101,6 @@ check_env() {
|
||||
echo "test: testing can only be done as 'root'."
|
||||
exit 1
|
||||
}
|
||||
- [ \! -x $mdadm ] && {
|
||||
- echo "test: please run make everything before perform testing."
|
||||
- exit 1
|
||||
- }
|
||||
cmds=(mdadm lsblk df udevadm losetup mkfs.ext3 fsck seq)
|
||||
for cmd in ${cmds[@]}
|
||||
do
|
Loading…
Add table
Add a link
Reference in a new issue