Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a unique & temporary IPYTHONDIR for each testing group. #2202

Merged
merged 1 commit into from Jul 26, 2012

Conversation

bfroehle
Copy link
Contributor

Following #2148 (unification of Windows / Unix code in iptest), and
in progress towards #1880 (Add parallelism to iptest & test_pr), this
pull request launches each iptest test group with a unique & temporary
IPYTHONDIR.

This has two benefits:

  • Insulates the test suite from any craziness in your own configuration.
    (Try adding import sys; sys.exit() to your config file...).
  • Allows multiple test suites to be launched in parallel without the worry of
    conflicts.

@fperez
Copy link
Member

fperez commented Jul 26, 2012

Test results for commit bd7abfb merged into master
Platform: linux2

  • python2.7: OK
  • python3.2: OK (libraries not available: cython matplotlib oct2py pymongo rpy2 wx wx.aui)

Not available for testing: python2.6

env['IPYTHONDIR'] = IPYTHONDIR
# print >> sys.stderr, '*** CMD:', ' '.join(self.call_args) # dbg
subp = subprocess.Popen(self.call_args, env=env)
self.pids.append(subp.pid)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably wait for #2204 to be merged first, and then update this to use that API, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

@bfroehle
Copy link
Contributor Author

Yes, exactly. Rebased and force pushed.

@fperez
Copy link
Member

fperez commented Jul 26, 2012

Test results for commit 0b4fd4c merged into master
Platform: linux2

  • python2.7: OK
  • python3.2: OK (libraries not available: cython matplotlib oct2py pymongo rpy2 wx wx.aui)

Not available for testing: python2.6

@fperez
Copy link
Member

fperez commented Jul 26, 2012

OK, all tests good, merging now. Thanks!

fperez added a commit that referenced this pull request Jul 26, 2012
Create a unique & temporary IPYTHONDIR for each testing group.

Following #2148 (unification of Windows / Unix code in iptest), and
in progress towards #1880 (Add parallelism to iptest & test_pr), this
pull request launches each iptest test group with a unique & temporary
`IPYTHONDIR`.

This has two benefits:
* Insulates the test suite from any craziness in your own configuration.
  (Try adding `import sys; sys.exit()` to your config file...).
* Allows multiple test suites to be launched in parallel without the worry of
  conflicts.
@fperez fperez merged commit 884e2d5 into ipython:master Jul 26, 2012
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Create a unique & temporary IPYTHONDIR for each testing group.

Following ipython#2148 (unification of Windows / Unix code in iptest), and
in progress towards ipython#1880 (Add parallelism to iptest & test_pr), this
pull request launches each iptest test group with a unique & temporary
`IPYTHONDIR`.

This has two benefits:
* Insulates the test suite from any craziness in your own configuration.
  (Try adding `import sys; sys.exit()` to your config file...).
* Allows multiple test suites to be launched in parallel without the worry of
  conflicts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants