From b256aac2e19f3880c6d33130db03df66571acb1c Mon Sep 17 00:00:00 2001 From: Roman Inflianskas Date: Fri, 15 Aug 2014 12:41:55 +0400 Subject: [PATCH] [dpaste] Allow test run with any working directory --- plugins/dpaste/tests/test_dpaste.fish | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/dpaste/tests/test_dpaste.fish b/plugins/dpaste/tests/test_dpaste.fish index 77daa7a..c4f17cf 100755 --- a/plugins/dpaste/tests/test_dpaste.fish +++ b/plugins/dpaste/tests/test_dpaste.fish @@ -1,9 +1,11 @@ #!/usr/bin/env fish +set -l script_dir (dirname (status -f)) + function suite_dpaste function setup set -g __dpaste_expires_choises - source ../dpaste.fish + source $script_dir/../dpaste.fish __dpaste_set_defaults end @@ -21,6 +23,6 @@ function suite_dpaste end if not set -q tank_running - source (dirname (status -f))/helper.fish + source $script_dir/helper.fish tank_run end