Skip to content

Commit

Permalink
Added implemented queries to run_all_tests.py
Browse files Browse the repository at this point in the history
Signed-off-by: Tanya <[email protected]>
  • Loading branch information
tanyaveksler committed Jul 16, 2023
1 parent b1cf11f commit e507368
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions nca/Resources/NetworkPolicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ def __str__(self):

def __eq__(self, other):
if type(self) == type(other):
self.sync_opt_props()
other.sync_opt_props()
return \
self.name == other.name and \
self.namespace == other.namespace and \
Expand Down
4 changes: 2 additions & 2 deletions tests/run_all_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ def run_all_test_flow(self, all_results):
tmp_opt = [i for i in self.test_queries_obj.args_obj.args if '-opt=' in i]
opt = tmp_opt[0].split('=')[1] if tmp_opt else 'false'
if isinstance(self.test_queries_obj, CliQuery) and (opt == 'debug' or opt == 'true'):
implemented_opt_queries = ['--connectivity']
implemented_opt_queries = {'--connectivity', '--equiv', 'permits'}
# TODO - update/remove the optimization below when all queries are supported in optimized implementation
if not set(implemented_opt_queries).intersection(set(self.test_queries_obj.args_obj.args)):
if not implemented_opt_queries.intersection(set(self.test_queries_obj.args_obj.args)):
print(f'Skipping {self.test_queries_obj.test_name} since it does not have optimized implementation yet')
return 0, 0

Expand Down

0 comments on commit e507368

Please sign in to comment.