generic/050: fix _require_local_device $SCRATCH_DEV check order
authorLuis Henriques <lhenriques@suse.com>
Tue, 2 Jan 2018 17:17:05 +0000 (17:17 +0000)
committerEryu Guan <eguan@redhat.com>
Tue, 2 Jan 2018 17:19:11 +0000 (01:19 +0800)
commitebe1aa88a197c63261a54c134f3596579d47708e
treedd91e5e30447ba30b73716b38ee3b1d1a9b43330
parente76e13ce8c0b4f7144807dc00b1aabe0a1b23ef5
generic/050: fix _require_local_device $SCRATCH_DEV check order

Commit 2b4eae7fd825 ("common/rc: add scratch shutdown support for
overlayfs") added a _require_local_device check to generic tests 042
and 050.  However, for test 050, this check was added _before_
actually verifying that a SCRATCH_DEV actually exists.  This patch
simply re-orders the _require_local_device to the right place.

Signed-off-by: Luis Henriques <lhenriques@suse.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/050