Commit Graph

6 Commits

Author SHA1 Message Date
Thomas Orozco 12197f95f6 Update tests to Python 3
Time to do this — Python 2 is EOL. This exposed a bug in one of the
tests that was stripping the entire environment from its subprocesses
(though they did sort of work on Python 2).
2020-04-19 17:34:10 +01:00
Thomas Orozco 2484f1a951 Reaping test: remove no sleep assumption
The reaping test assumes that all the `sleep` processes on the system
are created by us, which is an incorrect assumption, and creates
problems now that we run in a more "complete" system in CI (i.e. not in
a minimal container).

This solves the issue by not assuming that random sleep processes are
related to us: instead, we look at whether these processes are in our
process group.

This also includes a little clean up of the reaping stage 1.
2016-11-02 21:55:19 +01:00
Thomas Orozco 98e4449b36 Add tests for subreaping (and subreaping failures) 2015-09-01 21:17:10 +02:00
Thomas Orozco 1a863f8366 Run some functional tests in ci/run_build.sh
Using the child subreaper mechanism, we can actually run
tests inside the CI environment without depending on Docker.

While this does not replace the existing tests, it allows
at least some functional coverage within CI.
2015-07-05 14:25:21 +02:00
Thomas Orozco acbb3e4391 Randomize tests a little 2015-03-01 11:01:49 -05:00
Thomas Orozco fb689766ca Add basic test harness 2015-02-22 23:45:26 -08:00