Cannot abort make runtests

Issue #316 resolved
Martin Sandve Alnæs created an issue

I tried to Ctrl+C a "make runtests" process and it just kept on and on... Rather annoying.

Comments (15)

  1. Martin Sandve Alnæs reporter

    Most of the time a test will be running. Pressing Ctrl+C aborts the currently running test and gets me back to the commandline. But a process in the background keeps spawning the rest of the tests. Holding down Ctrl+C won't work, the rest of the tests will keep spawning.

  2. Prof Garth Wells

    @logg That's many more key strokes than Ctrl+c. What it is that has changed in the test scripts?

  3. Anders Logg (Chalmers)

    There seem to have been two recent changes (in test/unit/test.py):

    1. Changing from getstatusoutput to get_status_output
    2. Changing the command to be run from cd dir && python test.py to os.chdir + python test.py
  4. Prof Garth Wells

    I'be marked this a critical because my machine is going crazy with tests that I can't kill.

  5. Johan Hake

    The reason is that we switched to use os.system as default method for instant.get_status_output. We can either set the environment:

    export INSTANT_SYSTEM_CALL_METHOD=SUBPROCESS
    

    when running the tests in CMake, or maybe easier hardcode it in the script just before we import get_status_output.

    os.environ["INSTANT_SYSTEM_CALL_METHOD"] = "SUBPROCESS"
    
  6. Prof Garth Wells

    I don't care what the long term fix is, but I'd like to revert right away the change that screwed this up. I shouldn't have to reboot my computer to kill the tests.

  7. Log in to comment