#!/bin/sh

set -e

# Fixture for the pkgos-run-tests unit tests: it always passes, unless
# PKGOS_RUN_TESTS_FIXTURE is set, in which case it fails, on purpose.
# That way, this fixture also always passes when it is found by
# openstack-pkg-tools's own test suite, which runs without the
# PKGOS_RUN_TESTS_FIXTURE variable set.
if [ "${PKGOS_RUN_TESTS_FIXTURE}" = "yes" ] ; then
	echo "This failure is expected: PKGOS_RUN_TESTS_FIXTURE is set."
	exit 1
fi
exit 0
