[Groonga-commit] groonga/gcs [master] Run commands in directories not "bin" correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Nov 12 16:31:36 JST 2012


YUKI Hiroshi	2012-11-12 16:31:36 +0900 (Mon, 12 Nov 2012)

  New Revision: 07eeffc27a92db76969a684b5bd71f330bfc77dd
  https://github.com/groonga/gcs/commit/07eeffc27a92db76969a684b5bd71f330bfc77dd

  Log:
    Run commands in directories not "bin" correctly

  Modified files:
    test/test-utils.js

  Modified: test/test-utils.js (+3 -4)
===================================================================
--- test/test-utils.js    2012-11-12 16:10:41 +0900 (ac0b5b0)
+++ test/test-utils.js    2012-11-12 16:31:36 +0900 (308b6e1)
@@ -170,7 +170,7 @@ function run() {
 
   Deferred.next(function() {
     var commandName = options.shift();
-    var commandPath = __dirname + '/../bin/' + commandName;
+    var commandPath = path.resolve(resolve('./bin'), commandName);
     var command = spawn(commandPath, options);
     var output = {
           stdout: '',
@@ -217,9 +217,8 @@ function setupResponses(scenarios, date) {
     });
   }
 
-  var deferred = new Deferred();
-
-  return run(resolve('tools/run-scenarios'),
+  mkdirp.sync(outputDir);
+  return run(resolve('./tools/run-scenarios'),
                '--endpoint', '127.0.0.1.xip.io:' + testPort,
                '--scenarios', scenarios,
                '--output-directory', outputDir)
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index