From 18424a4f1e93484b87428303bf61a035f72df89b Mon Sep 17 00:00:00 2001 From: Andrew Bettison Date: Thu, 2 Aug 2012 15:42:18 +0930 Subject: [PATCH] Improve test framework: expose shellarg() function --- testframework.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/testframework.sh b/testframework.sh index 6633673e..6efb40ec 100644 --- a/testframework.sh +++ b/testframework.sh @@ -378,6 +378,12 @@ teardown() { # The following functions are provided to facilitate writing test cases and # fixtures. +# Add quotations to the given arguments to allow them to be expanded intact +# in eval expressions. +shellarg() { + _tfw_shellarg "$@" +} + # Echo the absolute path (containing symlinks if given) of the given # file/directory, which does not have to exist or even be accessible. abspath() {