Would you be okay with a patch that moves these lines out of the TorNet.py file and into the test-network.sh script? It would make more sense to me to keep these out of TorNet.py since these three environment variables don't seem relevant to Chutney as a whole, but more just for the test network script.
On the other hand there may be reasons why they were put in TorNet.py, and in that case, I can submit a patch which fixes the problem directly (wraps the os.environ.get() in an int() call).
Would you be okay with a patch that moves these lines out of the TorNet.py file and into the test-network.sh script? It would make more sense to me to keep these out of TorNet.py since these three environment variables don't seem relevant to Chutney as a whole, but more just for the test network script.
On the other hand there may be reasons why they were put in TorNet.py, and in that case, I can submit a patch which fixes the problem directly (wraps the os.environ.get() in an int() call).
When CHUTNEY_CONTROLLING_PID is set, chutney sets the __OwningControllerProcess torrc option, so that tor exits when chutney is finished. But when any of these environmental variable are negative numbers, the user wants tor to keep running after chutney exits, so we don't set __OwningControllerProcess.
So we need to patch TorNet.py to cast the strings to ints.