]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex-capture_and_apply
tests fixes
[wimlib] / tests / test-imagex-capture_and_apply
index c15d8ab825995ca6afc8ab8276a05c74b020e2f0..d281f8ec10df337872e53ff492eb8fb5bb09963d 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,8 @@
 # Also, test if the capture configuration file works correctly.
 
 set -e
-srcdir=${srcdir:-.}
-srcdir=`realpath $srcdir`
 cd tests
+. tests-common.sh
 
 imagex() {
        echo "imagex $@"
@@ -80,7 +79,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