]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex-capture_and_apply
Re-organize code
[wimlib] / tests / test-imagex-capture_and_apply
index 08fe6f623c3b6bf4b0a7faaef4b6cb4b02021c6f..1dfc9431568662f92613753be8ba9e58b1bd30a4 100755 (executable)
@@ -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 $@"