Merge pull request #6237 from jasongrout/iptest-profile-dir

Explicitly set the profile directory when running tests
This commit is contained in:
Thomas Kluyver 2014-07-30 11:11:41 -07:00
commit 9e2363a657

View File

@ -304,7 +304,7 @@ class JSController(TestController):
command.append('--KernelManager.transport=ipc')
self.stream_capturer = c = StreamCapturer()
c.start()
self.server = subprocess.Popen(command, stdout=c.writefd, stderr=subprocess.STDOUT)
self.server = subprocess.Popen(command, stdout=c.writefd, stderr=subprocess.STDOUT, cwd=self.nbdir.name)
self.server_info_file = os.path.join(self.ipydir.name,
'profile_default', 'security', 'nbserver-%i.json' % self.server.pid
)