Jim Paris
cd68389e9a
Update for Python 3 and psutil >= 2.
2 years ago
Jim Paris
6faf563bda
Remove nilmrun.testfilter
This module was only used to assist testing, but wasn't actually
available in a test environment where no copies of nilmrun have been
installed. Just code the contents directly into the filters that the
tests are running.
2 years ago
Jim Paris
fe36722684
Use built-in json module rather than external simplejson
2 years ago
Jim Paris
24740a838e
Run 2to3 over all code
2 years ago
Jim Paris
d332fa1e0f
Fix inconsistent indentation
2 years ago
Jim Paris
38c3e67cf9
Fix long lines
9 years ago
Jim Paris
7f05a0fb62
Switch to bash for Unicode tests
9 years ago
Jim Paris
81c2ad07d4
More robust checking in 09_info test
9 years ago
Jim Paris
3588e843ac
Replace burnP5 with dd
9 years ago
Jim Paris
477c27a4e6
Clean up temp dirs and processes at exit
9 years ago
Jim Paris
5b878378f3
Translate UTF-8 in command output more robustly
9 years ago
Jim Paris
5cd38f1ba9
Don't spin so fast in tests while waiting
9 years ago
Jim Paris
d7551bde0b
Make 'args' optional to /run/code
9 years ago
Jim Paris
40fd377a38
Remove 'name' from spawned processes
9 years ago
Jim Paris
29adb47a33
Fix test order
9 years ago
Jim Paris
32e59310ef
Fix for dead processes
9 years ago
Jim Paris
5a33ef48cc
Add /process/info request
9 years ago
Jim Paris
b2bdf784ac
Make test URLs relative
9 years ago
Jim Paris
e0709f0d17
Remove multiprocessing due to mod_wsgi incompatibility; use subprocess
Multiprocessing and Apache's mod_wsgi don't play nicely. Switch to
manually managing processes via subprocess.Popen etc instead. When
running arbitrary code, we write it to an external file, and running
functions directly is no longer supported.
9 years ago
Jim Paris
a7b9656916
Remove parameters from status output
9 years ago
Jim Paris
2e9ec63675
Don't catch SystemExit from a subprocess
9 years ago
Jim Paris
35b20c90a5
Rename and reorganize stuff
9 years ago
Jim Paris
6d9ee7b405
Ability to run user provided code now
9 years ago
Jim Paris
973d328e1e
Rename some URLs (/process/command -> /run/command, etc)
9 years ago
Jim Paris
734e1d9b52
Add /process/command; fix killing of forked processes
Now an entire process tree is killed in /process/remove, as long as
each child hasn't changed its process group.
9 years ago
Jim Paris
30a3559253
Add "force" option for /process/remove
9 years ago
Jim Paris
e2c9575937
More tests
9 years ago
Jim Paris
258fe2358d
Filled out test coverage, fixed lots of bugs
9 years ago
Jim Paris
f73de35ee6
Work in progress on the process manager. Very finicky.
The multiprocessing environment is really finicky.
I'm seeing deadlocks in the process at exit, that are probably related
to tracebacks being printed and still getting redirected to the
logfile or something.
9 years ago
Jim Paris
65e48caf5f
Start test framework; work on server and manager
9 years ago