diff options
author | jilles <jilles@FreeBSD.org> | 2014-08-17 14:26:12 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2014-08-17 14:26:12 +0000 |
commit | 7f580421d9cf07f502a2a520cc39d458bacfbc82 (patch) | |
tree | 00324ed59fda596ed40b1bd49405c9363410b78a /bin/sh/tests/functional_test.sh | |
parent | 5ef1ad7aadafeb31682c62f3aad6f3b4591fbf74 (diff) | |
download | FreeBSD-src-7f580421d9cf07f502a2a520cc39d458bacfbc82.zip FreeBSD-src-7f580421d9cf07f502a2a520cc39d458bacfbc82.tar.gz |
sh: Don't hardcode relative paths in the tests stderr files.
These paths have had to be adjusted to changes in the testsuite runner
several times, so modify the tests to remove the need for such adjustment.
A cp in functional_test.sh is now unneeded, but this matters little in
performance.
Diffstat (limited to 'bin/sh/tests/functional_test.sh')
-rwxr-xr-x | bin/sh/tests/functional_test.sh | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/bin/sh/tests/functional_test.sh b/bin/sh/tests/functional_test.sh index 33bee09..6980538 100755 --- a/bin/sh/tests/functional_test.sh +++ b/bin/sh/tests/functional_test.sh @@ -39,13 +39,7 @@ check() local out_file="${SRCDIR}/${tc}.stdout" [ -f "${out_file}" ] && out_flag="-o file:${out_file}" - # We need to copy the testcase scenario file because some of the - # testcases hardcode relative paths in the stderr/stdout. - # - # TODO: we might be able to generate this path at build time - cp ${SRCDIR}/${tc} . - - atf_check -s exit:${tc##*.} ${err_flag} ${out_flag} ${SH} "./${tc}" + atf_check -s exit:${tc##*.} ${err_flag} ${out_flag} ${SH} "${SRCDIR}/${tc}" } add_testcase() |