Jim Paris
549a27e66c
Add flake8 tests and clean up warnings
3 years ago
Jim Paris
cd68389e9a
Update for Python 3 and psutil >= 2.
3 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.
3 years ago
Jim Paris
58fd9d1559
Run cherrypy always in "embedded" mode
Non-embedded mode is not used in the test suite or wsgi server;
it was an option in the standalong nilmdb-server script, but it's
really not necessary, and removing it gets rid of some untested
code.
3 years ago
Jim Paris
2bc939d42d
CherryPy bug 1200 is no longer an issue
3 years ago
Jim Paris
fe36722684
Use built-in json module rather than external simplejson
3 years ago
Jim Paris
24740a838e
Run 2to3 over all code
3 years ago
Jim Paris
d332fa1e0f
Fix inconsistent indentation
3 years ago
Jim Paris
cbc7a7dd55
Start Python 3 conversion
3 years ago
Jim Paris
38c3e67cf9
Fix long lines
10 years ago
Jim Paris
7f05a0fb62
Switch to bash for Unicode tests
10 years ago
Jim Paris
81c2ad07d4
More robust checking in 09_info test
10 years ago
Jim Paris
3588e843ac
Replace burnP5 with dd
10 years ago
Jim Paris
9309fd9b57
Change -V option to -v everywhere
10 years ago
Jim Paris
21bd1bd050
Always print header, even if no processes
10 years ago
Jim Paris
cafdfce4f0
Add nilmrun-ps, -kill, and -run commands
10 years ago
Jim Paris
477c27a4e6
Clean up temp dirs and processes at exit
10 years ago
Jim Paris
bed26e099b
Put each code in its own dir; save args too
10 years ago
Jim Paris
9224566f9b
More robust process killing
10 years ago
Jim Paris
a8ecad9329
Use NilmDB serializer for ProcessManager
10 years ago
Jim Paris
5b878378f3
Translate UTF-8 in command output more robustly
10 years ago
Jim Paris
5cd38f1ba9
Don't spin so fast in tests while waiting
10 years ago
Jim Paris
d7551bde0b
Make 'args' optional to /run/code
10 years ago
Jim Paris
40fd377a38
Remove 'name' from spawned processes
10 years ago
Jim Paris
6e7f3ac704
Remove nilm-trainola script
10 years ago
Jim Paris
29adb47a33
Fix test order
10 years ago
Jim Paris
7c605a469a
Cleanup dependencies
10 years ago
Jim Paris
f5225f88f9
Add max CPU percentage
10 years ago
Jim Paris
32e59310ef
Fix for dead processes
10 years ago
Jim Paris
5a33ef48cc
Add /process/info request
10 years ago
Jim Paris
18a5cd6334
Improve boolean parameter parsing
10 years ago
Jim Paris
7ec4d60d38
Fix WSGI docs
10 years ago
Jim Paris
b2bdf784ac
Make test URLs relative
10 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.
10 years ago
Jim Paris
18d3cff772
Update WSGI docs
10 years ago
Jim Paris
a7b9656916
Remove parameters from status output
10 years ago
Jim Paris
2e9ec63675
Don't catch SystemExit from a subprocess
10 years ago
Jim Paris
6d295b840a
Delete trainola; it will live in nilmtools repo
10 years ago
Jim Paris
74a05d05d6
Clear out traceback object to avoid reference cycles
10 years ago
Jim Paris
35b20c90a5
Rename and reorganize stuff
10 years ago
Jim Paris
6d9ee7b405
Ability to run user provided code now
10 years ago
Jim Paris
721d6c4936
Add run_code_string function, untested
10 years ago
Jim Paris
973d328e1e
Rename some URLs (/process/command -> /run/command, etc)
10 years ago
Jim Paris
0338d40226
One fewer process when spawning commands
10 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.
10 years ago
Jim Paris
30a3559253
Add "force" option for /process/remove
10 years ago
Jim Paris
caad5dec04
Add warning about lack of auth
10 years ago
Jim Paris
e89a48dbb7
Mention SSL stuff in docs
10 years ago
Jim Paris
e2c9575937
More tests
10 years ago
Jim Paris
258fe2358d
Filled out test coverage, fixed lots of bugs
10 years ago