From: Karel Zak Date: Mon, 19 Jan 2009 21:37:52 +0000 (+0100) Subject: tests: cleanup ts/cal scripts X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b319621a35a23d9403a151aaee12efc8519f491f;p=util-linux tests: cleanup ts/cal scripts Signed-off-by: Karel Zak --- diff --git a/tests/ts/cal/1m b/tests/ts/cal/1m index 53a1395e..1fe64cf9 100755 --- a/tests/ts/cal/1m +++ b/tests/ts/cal/1m @@ -15,12 +15,11 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # -. ./commands.sh -. ./functions.sh -TS_COMPONENT="cal" +TS_TOPDIR="$(dirname $0)/../.." TS_DESC="1 month" +. $TS_TOPDIR/functions.sh ts_init "$*" set -o pipefail diff --git a/tests/ts/cal/3m b/tests/ts/cal/3m index aa815f58..e8b5da5e 100755 --- a/tests/ts/cal/3m +++ b/tests/ts/cal/3m @@ -15,12 +15,10 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # -. ./commands.sh -. ./functions.sh - -TS_COMPONENT="cal" +TS_TOPDIR="$(dirname $0)/../.." TS_DESC="3 months" +. $TS_TOPDIR/functions.sh ts_init "$*" set -o pipefail diff --git a/tests/ts/cal/year b/tests/ts/cal/year index 769373a9..658c393f 100755 --- a/tests/ts/cal/year +++ b/tests/ts/cal/year @@ -15,12 +15,10 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # -. ./commands.sh -. ./functions.sh - -TS_COMPONENT="cal" +TS_TOPDIR="$(dirname $0)/../.." TS_DESC="year" +. $TS_TOPDIR/functions.sh ts_init "$*" set -o pipefail