diff options
author | David Sterba <dsterba@suse.com> | 2016-11-18 19:21:02 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-23 11:07:05 +0100 |
commit | d4ce61f7a2905c914e00ff764ecfa2554d1726b7 (patch) | |
tree | c55b6dd4d143632b6fe9286b8575acf5829c560b /tests/common | |
parent | 3a8234ee73f6c9e57c0327021f6b8c41c876c685 (diff) |
btrfs-progs: tests: add fallback to current directory for check_all_images
Reported-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tests/common')
-rw-r--r-- | tests/common | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/common b/tests/common index e653d4c6..5430f822 100644 --- a/tests/common +++ b/tests/common @@ -202,6 +202,10 @@ check_all_images() local extracted dir="$1" + if [ -z "$dir" ]; then + dir=. + fi + _assert_path "$dir" for image in $(find "$dir" \( -iname '*.img' -o \ -iname '*.img.xz' -o \ -iname '*.raw' -o \ |