diff options
author | Tharre <tharre3@gmail.com> | 2015-09-16 19:42:16 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2015-09-16 19:42:16 +0200 |
commit | 29fb2912ef6100a9659c2f065c683424f2a964a4 (patch) | |
tree | 77bc6645e1aa1241cefa0b5f45a6e870b0bb9b32 /tests | |
parent | 7948ad86578f789cf1c2b92eb9b5c625e26df007 (diff) | |
download | redo-29fb2912ef6100a9659c2f065c683424f2a964a4.tar.gz redo-29fb2912ef6100a9659c2f065c683424f2a964a4.tar.xz redo-29fb2912ef6100a9659c2f065c683424f2a964a4.zip |
Make $3 an absolute path
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/t0010-check_args.t | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/t0010-check_args.t b/tests/t0010-check_args.t index feae935..ca6d28f 100755 --- a/tests/t0010-check_args.t +++ b/tests/t0010-check_args.t @@ -16,8 +16,19 @@ cat > "d/check_args.ext1.ext2.do" <<'EOF' [ "$3" != "check_args.ext1.ext2" ] EOF +cat > "absolute_paths.do" <<'EOF' +#!/bin/sh -e +cd /tmp +echo "test" > $3 +EOF + test_expect_success "check arguments" " redo d/check_args.ext1.ext2 " +test_expect_success "\$3 should be absolute" " + redo absolute_paths && + [ -e absolute_paths ] +" + test_done |