[parted-devel] [PATCH 2/2] tests: t0202-gpt-pmbr.sh: do not use /dev/urandom
Petr Uzel
petr.uzel at suse.cz
Tue Aug 25 12:48:57 UTC 2009
* use ../Makefile as a source for random bootcode data instead of
/dev/urandom which might not exist
Signed-off-by: Petr Uzel <petr.uzel at suse.cz>
---
tests/t0202-gpt-pmbr.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/t0202-gpt-pmbr.sh b/tests/t0202-gpt-pmbr.sh
index 2c365c2..0143b70 100755
--- a/tests/t0202-gpt-pmbr.sh
+++ b/tests/t0202-gpt-pmbr.sh
@@ -23,7 +23,7 @@ test_description='Preserve first 446B of the Protected MBR for gpt partitions.'
dev=loop-file
test_expect_success \
'Create a 100k test file with random content' \
- 'dd if=/dev/urandom of=$dev bs=1c count=446 &&
+ 'dd if=../Makefile of=$dev bs=1c count=446 &&
dd if=/dev/zero of=$dev bs=1c seek=446 count=101954 > /dev/null 2>&1'
test_expect_success \
--
1.6.3.3
--
Best regards / s pozdravem
Petr Uzel, openSUSE Community Multiplier Team
-----------------------------------------------------------------
SUSE LINUX, s.r.o. e-mail: puzel at suse.cz
Lihovarská 1060/12 http://www.suse.cz
190 00 Prague 9, CR
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20090825/3d3f27a9/attachment.pgp>
More information about the parted-devel
mailing list