Current-Users archive

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

Re: failing i386 atf tests



On Dec,Monday 13 2010, at 1:22 PM, Antti Kantee wrote:

> On Mon, Dec 13, 2010 at 01:00:34PM +0100, Adam Hamsik wrote:
>> Hi folks, 
>> 
>> My periodic runs of anita test fails for i386 with this error. Does it ring 
>> bell to anyone ?
>> 
>> # atf-run t_vnd 
>> tc-so:Executing command [ mount /dev/vnd3a mnt ]
>> tc-so:Creating test files
>> tc-se:sh: cannot create mnt/2/: directory nonexistent
>> tc-se:t_vnd: ERROR: The test case cleanup returned a non-ok exit code, but 
>> this is not allowed
>> tc-end: basic, failed, Failed to create file 2/
> 
> Is your test source corrupt?  I can't see where the "/" is coming from:
> 
>        echo "Creating test files"
>        for f in $(jot 100); do
>                jot 1000 >mnt/${f} || atf_fail "Failed to create file ${f}"
>        done
# pwd
/usr/tests/fs/tmpfs
# uname -a
NetBSD  5.99.40 NetBSD 5.99.40 (GENERIC) #0: Sun Nov 28 13:51:47 CET 2010  
buildbot%musasi.haad.chillisys.com@localhost:/usr/devel/buildslave/obj/i386/sys/arch/i386/compile/GENERIC
 i386
# cat t_vnd 

basic_body() {
        test_mount

        atf_check -s eq:0 -o ignore -e ignore \
            dd if=/dev/zero of=disk.img bs=1m count=10
        atf_check -s eq:0 -o empty -e empty vnconfig /dev/vnd3 disk.img

        atf_check -s eq:0 -o ignore -e ignore newfs /dev/rvnd3a

        atf_check -s eq:0 -o empty -e empty mkdir mnt
        atf_check -s eq:0 -o empty -e empty mount /dev/vnd3a mnt

        echo "Creating test files"
        for f in $(jot 100); do
                jot 1000 >mnt/${f} || atf_fail "Failed to create file ${f}"
        done

        echo "Verifying created files"
        for f in $(jot 100); do
                [ $(md5 mnt/${f} | cut -d ' ' -f 4) = \
                    53d025127ae99ab79e8502aae2d9bea6 ] || \
                    atf_fail "Invalid checksum for file ${f}"
        done

        atf_check -s eq:0 -o empty -e empty umount mnt
        atf_check -s eq:0 -o empty -e empty vnconfig -u /dev/vnd3

        test_unmount
}
basic_cleanup() {
        umount mnt 2>/dev/null 1>&2
        vnconfig -u /dev/vnd3 2>/dev/null 1>&2
}


Regards

Adam.



Home | Main Index | Thread Index | Old Index