[Pkg-mozext-commits] [requestpolicy] 09/257: tweak `run-xpcshell-tests.sh`

David Prévot taffit at moszumanska.debian.org
Thu Jan 28 03:19:51 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository requestpolicy.

commit 81112ecc6a8f88f5569ab14d82e81e0682a3d3bb
Author: Martin Kimmerle <dev at 256k.de>
Date:   Sat Aug 1 01:57:37 2015 +0200

    tweak `run-xpcshell-tests.sh`
---
 tests/run-xpcshell-tests.sh | 22 ++++++++--------------
 1 file changed, 8 insertions(+), 14 deletions(-)

diff --git a/tests/run-xpcshell-tests.sh b/tests/run-xpcshell-tests.sh
index f8473ca..343295b 100755
--- a/tests/run-xpcshell-tests.sh
+++ b/tests/run-xpcshell-tests.sh
@@ -1,23 +1,17 @@
 #!/bin/bash
 
-(cd `dirname $0`/.. ; make unit-testing-files)
-
 TEST_DIR=`dirname $0`/xpcshell
 
 MOZ_SRC_DIR=/moz/mozilla-central
 MOZ_OBJ_DIR=($MOZ_SRC_DIR/obj-*)
 MOZ_BIN_DIR=$MOZ_OBJ_DIR/dist/bin
 
-ARGUMENTS=""
-
-if [ -z "$1" ]; then
-  ARGUMENTS=""
-elif [ "$1" = "--help" ]; then
-  echo "Usage:"
-  echo "  $0 [test_filename.js]     (run all tests or just one.)"
-  exit
+if [ "$1" = "--help" ]; then
+  echo 'Hints:'
+  echo '  Use --test-path="test_file.js" to run a single test.'
+  echo
 else
-  ARGUMENTS=" --test-path=$1 "
+  (cd `dirname $0`/.. ; make unit-testing-files)
 fi
 
 export PYTHONPATH=\
@@ -32,6 +26,6 @@ $MOZ_SRC_DIR/testing/mozbase/mozlog
 python2.7 $MOZ_SRC_DIR/testing/xpcshell/runxpcshelltests.py \
   --build-info-json $MOZ_OBJ_DIR/mozinfo.json \
   --no-logfiles \
-  $ARGUMENTS \
-  $MOZ_BIN_DIR/xpcshell \
-  $TEST_DIR
+  --manifest=$TEST_DIR/xpcshell.ini \
+  $@ \
+  $MOZ_BIN_DIR/xpcshell

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git



More information about the Pkg-mozext-commits mailing list