[Groonga-commit] groonga/groonga [master] test: run "bundle install" on the first time

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 9日 (土) 23:24:03 JST


Kouhei Sutou	2012-06-09 23:24:03 +0900 (Sat, 09 Jun 2012)

  New Revision: 07a400596eb056d5a3860e58414f0255cd67202d

  Log:
    test: run "bundle install" on the first time

  Modified files:
    test/unit/run-test.sh

  Modified: test/unit/run-test.sh (+2 -2)
===================================================================
--- test/unit/run-test.sh    2012-06-09 23:18:25 +0900 (fc81acc)
+++ test/unit/run-test.sh    2012-06-09 23:24:03 +0900 (4ea3a19)
@@ -96,7 +96,6 @@ if test "$NO_CUTTER" != "yes" -a -n "$CUTTER"; then
     no_test=0
 fi
 
-set -x
 ruby_result=0
 if test "$NO_RUBY" != "yes" -a -n "$RUBY"; then
     : ${TEST_UNIT_MAX_DIFF_TARGET_STRING_SIZE:=30000}
@@ -109,7 +108,8 @@ if test "$NO_RUBY" != "yes" -a -n "$RUBY"; then
     if ! type bundle > /dev/null; then
 	$RUBY -S gem install bundler
     fi
-    if [ "$BUNDLE_GEMFILE" -nt "$BUNDLE_GEMFILE.lock" ]; then
+    if [ ! -e "$BUNDLE_GEMFILE.lock" -o \
+	 "$BUNDLE_GEMFILE" -nt "$BUNDLE_GEMFILE.lock" ]; then
 	$RUBY -S bundle install
     fi
     $RUBY $BASE_DIR/run-test.rb $RUBY_TEST_ARGS "$@"




Groonga-commit メーリングリストの案内
Back to archive index