X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=tests%2Ftest-imagex-capture_and_apply;h=1dfc9431568662f92613753be8ba9e58b1bd30a4;hb=eb61b7cad6d1eef756d6e6d08c62af1294cd5ebb;hp=db3fcbe69e501d81fc595672907bc696c50890bb;hpb=f7a9a626a3332d1f4b6c7035a55e41884cdf90dd;p=wimlib diff --git a/tests/test-imagex-capture_and_apply b/tests/test-imagex-capture_and_apply index db3fcbe6..1dfc9431 100755 --- a/tests/test-imagex-capture_and_apply +++ b/tests/test-imagex-capture_and_apply @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Test capturing and applying a WIM image in the normal (non-NTFS) capture mode # @@ -9,8 +9,11 @@ # Also, test if the capture configuration file works correctly. set -e -srcdir=`pwd` cd tests +srcdir="${srcdir:-.}/.." +srcdir="$(cd $srcdir; pwd)" +. "$srcdir/tests/tests-common.sh" + imagex() { echo "imagex $@"