Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Unified Diff: tests/common.sh

Issue 3162023: Run the cgpt tests in a separate directory. (Closed) Base URL: http://src.chromium.org/git/vboot_reference.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/run_cgpt_tests.sh » ('j') | tests/run_cgpt_tests.sh » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/common.sh
diff --git a/tests/common.sh b/tests/common.sh
index 1e2ca03fe791b061d8492e49b8deca49bdb990b9..cd7695f0bd62aae932245ea9e2803301a143a3c2 100755
--- a/tests/common.sh
+++ b/tests/common.sh
@@ -5,15 +5,7 @@
# found in the LICENSE file.
# Determine script directory.
-if [[ $0 == '/'* ]];
-then
- SCRIPT_DIR="`dirname $0`"
-elif [[ $0 == './'* ]];
-then
- SCRIPT_DIR="`pwd`"
-else
- SCRIPT_DIR="`pwd`"/"`dirname $0`"
-fi
+SCRIPT_DIR=$(dirname $(readlink -f "$0"))
vb 2010/08/19 23:15:35 This is a noop change, right? It of course is a
gauravsh 2010/08/19 23:34:47 FYI, The original complicated logic for determinin
Bill Richardson 2010/08/19 23:59:34 Yes. That's why I added it in the first place. The
ROOT_DIR="$(dirname ${SCRIPT_DIR})"
BUILD_DIR="${ROOT_DIR}/build"
« no previous file with comments | « no previous file | tests/run_cgpt_tests.sh » ('j') | tests/run_cgpt_tests.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698