[moriarty] r332 committed - Allow MORIARTY_ARC_DIR to be set from environment variable in runtests...

1 view
Skip to first unread message

mori...@googlecode.com

unread,
Jan 11, 2012, 9:36:36 AM1/11/12
to moriarty...@googlegroups.com
Revision: 332
Author: jhi...@gmail.com
Date: Wed Jan 11 06:33:48 2012
Log: Allow MORIARTY_ARC_DIR to be set from environment variable in
runtests.php so that CI server can pass in location of ARC2.
http://code.google.com/p/moriarty/source/detail?r=332

Modified:
/trunk/tests/runtests.php

=======================================
--- /trunk/tests/runtests.php Wed Jan 11 06:32:03 2012
+++ /trunk/tests/runtests.php Wed Jan 11 06:33:48 2012
@@ -2,6 +2,12 @@
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Moriarty_AllTests::main');
}
+
+// use environment variable to specify location of ARC2
+$moriarty_arc_dir = getenv("MORIARTY_ARC_DIR");
+if(!empty($moriarty_arc_dir)) {
+ define("MORIARTY_ARC_DIR", $moriarty_arc_dir);
+}

require_once dirname(dirname(__FILE__)) .
DIRECTORY_SEPARATOR . 'constants.inc.php';
require_once 'PHPUnit/TextUI/TestRunner.php';

Reply all
Reply to author
Forward
0 new messages