Commit 3817ce03 authored by Paolo Bonzini's avatar Paolo Bonzini Committed by Kevin Wolf
Browse files

qemu-iotests: do not include common.rc in "check"



It only provides functions used by the test programs.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
parent d1f2447a
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -72,12 +72,6 @@ then
    _init_error "failed to source common.config"
fi

# we need common.rc
if ! . "$source_iotests/common.rc"
then
    _init_error "failed to source common.rc"
fi

# we need common
. "$source_iotests/common"

+5 −8
Original line number Diff line number Diff line
@@ -40,15 +40,12 @@ poke_file()
    printf "$3" | dd "of=$1" bs=1 "seek=$2" conv=notrunc &>/dev/null
}

# we need common.config
if [ "$iam" != "check" ]
then

if ! . ./common.config
    then
    echo "$iam: failed to source common.config"
    exit 1
fi
fi

_qemu_wrapper()
{