Skip to content

Commit eac44e8

Browse files
committed
Python: test nice locations
there are errors both on lines 2 and 3 due to locations being computed wrongly.
1 parent 01ff690 commit eac44e8

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from nova.api.openstack.placement import microversion
2+
from nova.api.openstack.placement.objects import resource_provider as rp_obj
3+
from nova.api.openstack.placement.policies import allocation_candidate as \
4+
policies
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
| import_statements.py | 1 | 6 | 1 | 33 |
2+
| import_statements.py | 1 | 42 | 1 | 53 |
3+
| import_statements.py | 2 | 6 | 2 | 41 |
4+
| import_statements.py | 2 | 60 | 2 | 76 |
5+
| import_statements.py | 2 | 71 | 2 | 76 |
6+
| import_statements.py | 3 | 6 | 3 | 42 |
7+
| import_statements.py | 4 | 5 | 4 | 12 |
8+
| import_statements.py | 4 | -7 | 4 | 12 |
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import python
2+
import analysis.DefinitionTracking
3+
4+
from NiceLocationExpr expr, string f, int bl, int bc, int el, int ec
5+
where expr.hasLocationInfo(f, bl, bc, el, ec)
6+
select f, bl, bc, el, ec

0 commit comments

Comments
 (0)