Skip to content

Commit

Permalink
docker: Add test_fail and prep_fail
Browse files Browse the repository at this point in the history
They both print a message and exit, but with different status code so
distinguish real test errors from env preparation failures.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20170905025614.579-3-famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Based-on: 20170905021201.25684-1-famz@redhat.com
  • Loading branch information
Fam Zheng committed Sep 22, 2017
1 parent d8a2f51 commit 82659e8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/docker/common.rc
Expand Up @@ -32,3 +32,15 @@ build_qemu()
echo $config_opts
$QEMU_SRC/configure $config_opts && make $MAKEFLAGS
}

test_fail()
{
echo "$@"
exit 1
}

prep_fail()
{
echo "$@"
exit 2
}

0 comments on commit 82659e8

Please sign in to comment.