#!/bin/sh

set -eu

# A mock of losetup(8) for the ikvswitch unit tests: ikvswitch-setup
# only uses losetup to detach the loop device of the cleanup trap. The
# calls are recorded in ${IKV_MOCK_LOSETUP_LOG} when it is set.

if [ -n "${IKV_MOCK_LOSETUP_LOG:-}" ] ; then
	echo "$@" >>"${IKV_MOCK_LOSETUP_LOG}"
fi
exit 0
