|
|
Make test_results deployable again.
This uses a slightly better version of what chromium_cq_status does
to work around the import problems with appengine apps and test.py.
test.py wants absolute module paths and appengine want's app-root-relative
paths.
Add the app-root to sys.path where needed and then pop it off.
This is not awesome because python modules don't unload. So, once
you load "model" from chromium_cq_status, it will keep pointing to
the wrong thing for test_results. "Fix" this by calling reload on the
modules that have conflicting names betwen the two apps.
Again, this is not the right long-term solution, but it gets
test_results deployable while still having it work with test.py.
Also, rename jsonresults_unittest to jsonresults_test so test.py
picks it up.
BUG= 401856, 405672
Committed: https://chromium.googlesource.com/infra/infra/+/1bce782ccc4165adef0f14a1dda566f6784a7014
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+90 lines, -1292 lines) |
Patch |
 |
M |
appengine/chromium_cq_status/tests/post_test.py
|
View
|
|
1 chunk |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
appengine/chromium_cq_status/tests/query_test.py
|
View
|
|
1 chunk |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
appengine/chromium_cq_status/tests/utils_test.py
|
View
|
|
1 chunk |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
A |
appengine/path_mangler_hack.py
|
View
|
1
2
3
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
appengine/test_results/__init__.py
|
View
|
1
2
3
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
M |
appengine/test_results/handlers/buildershandler.py
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
appengine/test_results/handlers/testfilehandler.py
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
appengine/test_results/model/jsonresults.py
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
appengine/test_results/model/testfile.py
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
appengine/test_results/test/buildershandler_test.py
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
A + |
appengine/test_results/test/jsonresults_test.py
|
View
|
|
1 chunk |
+19 lines, -16 lines |
0 comments
|
Download
|
 |
D |
appengine/test_results/test/jsonresults_unittest.py
|
View
|
|
1 chunk |
+0 lines, -1244 lines |
0 comments
|
Download
|
 |
M |
appengine/test_results/test/testfile_test.py
|
View
|
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
appengine/test_results/test/testfilehandler_test.py
|
View
|
|
1 chunk |
+10 lines, -6 lines |
0 comments
|
Download
|
Total messages: 32 (0 generated)
|