X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=tests%2Ftest-imagex-capture_and_apply;h=1dfc9431568662f92613753be8ba9e58b1bd30a4;hb=eb61b7cad6d1eef756d6e6d08c62af1294cd5ebb;hp=c15d8ab825995ca6afc8ab8276a05c74b020e2f0;hpb=4ba34093040be55a44a7707826a4912e594e5291;p=wimlib diff --git a/tests/test-imagex-capture_and_apply b/tests/test-imagex-capture_and_apply index c15d8ab8..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,9 +9,11 @@ # Also, test if the capture configuration file works correctly. set -e -srcdir=${srcdir:-.} -srcdir=`realpath $srcdir` cd tests +srcdir="${srcdir:-.}/.." +srcdir="$(cd $srcdir; pwd)" +. "$srcdir/tests/tests-common.sh" + imagex() { echo "imagex $@" @@ -80,7 +82,7 @@ do_test() { # Can we split the WIM, apply the split WIM, join the split WIM, # and apply the joined WIM, and get the same results every time? - if ! imagex split test.wim test.swm 0.01M; then + if ! imagex split test.wim test.swm 0.01; then error "Failed to split WIM" fi if ! imagex apply test.swm 1 out.dir --ref "test*.swm" ; then