Index: third_party/grpc/tools/run_tests/pre_build_ruby.sh |
diff --git a/third_party/WebKit/Tools/Scripts/move-layout-tests b/third_party/grpc/tools/run_tests/pre_build_ruby.sh |
similarity index 88% |
copy from third_party/WebKit/Tools/Scripts/move-layout-tests |
copy to third_party/grpc/tools/run_tests/pre_build_ruby.sh |
index 5cee8c427d7dea4f30ec58261dd631ec36fe9010..569a1d0333b8876dfca778bd3c1c90dad23d6c5d 100755 |
--- a/third_party/WebKit/Tools/Scripts/move-layout-tests |
+++ b/third_party/grpc/tools/run_tests/pre_build_ruby.sh |
@@ -1,5 +1,7 @@ |
-#!/usr/bin/env python |
-# Copyright (C) 2013 Google Inc. All rights reserved. |
+#!/bin/bash |
+ |
+# Copyright 2015, Google Inc. |
+# All rights reserved. |
# |
# Redistribution and use in source and binary forms, with or without |
# modification, are permitted provided that the following conditions are |
@@ -27,8 +29,11 @@ |
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-import sys |
+set -ex |
+ |
+export GRPC_CONFIG=${CONFIG:-opt} |
-from webkitpy.layout_tests import layout_tests_mover |
+# change to grpc's ruby directory |
+cd $(dirname $0)/../../src/ruby |
-sys.exit(layout_tests_mover.main(sys.argv[1:])) |
+bundle install |