Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/fs/tmpfs Workaround problem with qemu where jot 100 pr...



details:   https://anonhg.NetBSD.org/src/rev/d4c664f71525
branches:  trunk
changeset: 764437:d4c664f71525
user:      haad <haad%NetBSD.org@localhost>
date:      Thu Apr 21 22:26:46 2011 +0000

description:
Workaround problem with qemu where jot 100 produce garbage otput like this

93
94
:+
:,
:-
:.
:/
100

This can't be used as name of file, change jot cmd to work in all cases.

diffstat:

 tests/fs/tmpfs/t_vnd.sh |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r 0da3c9e73086 -r d4c664f71525 tests/fs/tmpfs/t_vnd.sh
--- a/tests/fs/tmpfs/t_vnd.sh   Thu Apr 21 20:59:38 2011 +0000
+++ b/tests/fs/tmpfs/t_vnd.sh   Thu Apr 21 22:26:46 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_vnd.sh,v 1.7 2011/03/24 21:52:51 jmmv Exp $
+# $NetBSD: t_vnd.sh,v 1.8 2011/04/21 22:26:46 haad Exp $
 #
 # Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -46,12 +46,12 @@
        atf_check -s eq:0 -o empty -e empty mount /dev/vnd3a mnt
 
        echo "Creating test files"
-       for f in $(jot 100); do
+       for f in $(jot -w %u 100 | uniq); do
                jot 1000 >mnt/${f} || atf_fail "Failed to create file ${f}"
        done
 
        echo "Verifying created files"
-       for f in $(jot 100); do
+       for f in $(jot -w %u 100 | uniq); do
                [ $(md5 mnt/${f} | cut -d ' ' -f 4) = \
                    53d025127ae99ab79e8502aae2d9bea6 ] || \
                    atf_fail "Invalid checksum for file ${f}"



Home | Main Index | Thread Index | Old Index