[Pkg-mongodb-maintainers] [pkg-mongodb] 44/394: added installDir to paths used by tests
Apollon Oikonomopoulos
apoikos at moszumanska.debian.org
Wed Sep 21 13:57:51 UTC 2016
This is an automated email from the git hooks/post-receive script.
apoikos pushed a commit to branch master
in repository pkg-mongodb.
commit 155b13a5ec0e0d83585a9a8a6f9265756eb322bc
Author: Antonin Kral <a.kral at bobek.cz>
Date: Thu Mar 25 20:52:53 2010 +0100
added installDir to paths used by tests
---
SConstruct | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/SConstruct b/SConstruct
index 8a17e69..9eab622 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1213,15 +1213,15 @@ def ensureDir( name ):
Exit( 1 )
def ensureTestDirs():
- ensureDir( "/tmp/unittest/" )
- ensureDir( "/data/" )
- ensureDir( "/data/db/" )
+ ensureDir( installDir + "/tmp/unittest/" )
+ ensureDir( installDir + "/data/" )
+ ensureDir( installDir + "/data/db/" )
def testSetup( env , target , source ):
ensureTestDirs()
if len( COMMAND_LINE_TARGETS ) == 1 and str( COMMAND_LINE_TARGETS[0] ) == "test":
- ensureDir( "/tmp/unittest/" );
+ ensureDir( installDir + "/tmp/unittest/" );
addSmoketest( "smoke", [ add_exe( "test" ) ] , [ test[ 0 ].abspath ] )
addSmoketest( "smokePerf", [ "perftest" ] , [ perftest[ 0 ].abspath ] )
@@ -1299,7 +1299,7 @@ def startMongodWithArgs(*args):
mongodForTestsPort = "32000"
import os
ensureTestDirs()
- dirName = "/data/db/sconsTests/"
+ dirName = installDir + "/data/db/sconsTests/"
ensureDir( dirName )
from subprocess import Popen
mongodForTests = Popen([mongod[0].abspath, "--port", mongodForTestsPort,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mongodb/pkg-mongodb.git
More information about the Pkg-mongodb-maintainers
mailing list