summaryrefslogtreecommitdiffstats
path: root/tests/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/common.sh')
-rw-r--r--tests/common.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/common.sh b/tests/common.sh
index 55334e6..991566f 100644
--- a/tests/common.sh
+++ b/tests/common.sh
@@ -17,9 +17,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+BUILDDIR="${PWD}/.."
+
# The "common" module is used by all library modules.
# We have to manually load the "common" module so we can use it in ob_use.
-. "${DESTDIR}/lib/common.sm"
+. "${BUILDDIR}/lib/common.sm"
ob_use()
{
@@ -31,7 +33,7 @@ ob_use()
return $(_ob_return 125)
fi
- _obu_module="${DESTDIR}/lib/${_obu_module}.sm"
+ _obu_module="${BUILDDIR}/lib/${_obu_module}.sm"
if [ -r "${_obu_module}" ]; then
. "${_obu_module}"
else