]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex-capture_and_apply
Re-organize code
[wimlib] / tests / test-imagex-capture_and_apply
index fcac5cee4a36096ca1b817f178a7a40eb66f76ed..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
 #
 
 set -e
 cd tests
-srcdir=..
+srcdir="${srcdir:-.}/.."
+srcdir="$(cd $srcdir; pwd)"
+. "$srcdir/tests/tests-common.sh"
+
 
 imagex() {
        echo "imagex $@"