Python: test nice locations

there are errors both on lines 2 and 3 due to
locations being computed wrongly.
This commit is contained in:
Rasmus Lerchedahl Petersen
2023-08-10 14:21:16 +02:00
parent 01ff690d51
commit eac44e89d9
3 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
from nova.api.openstack.placement import microversion
from nova.api.openstack.placement.objects import resource_provider as rp_obj
from nova.api.openstack.placement.policies import allocation_candidate as \
policies

View File

@@ -0,0 +1,8 @@
| import_statements.py | 1 | 6 | 1 | 33 |
| import_statements.py | 1 | 42 | 1 | 53 |
| import_statements.py | 2 | 6 | 2 | 41 |
| import_statements.py | 2 | 60 | 2 | 76 |
| import_statements.py | 2 | 71 | 2 | 76 |
| import_statements.py | 3 | 6 | 3 | 42 |
| import_statements.py | 4 | 5 | 4 | 12 |
| import_statements.py | 4 | -7 | 4 | 12 |

View File

@@ -0,0 +1,6 @@
import python
import analysis.DefinitionTracking
from NiceLocationExpr expr, string f, int bl, int bc, int el, int ec
where expr.hasLocationInfo(f, bl, bc, el, ec)
select f, bl, bc, el, ec