Prepopulated directories should have their partition state set. Filter commit_unknow_result errors if encountered in the directory test.

This commit is contained in:
A.J. Beamon 2018-08-13 13:35:48 -07:00
parent 61480bdf4e
commit 6af8c0d907
1 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ class DirectoryTest(Test):
instructions.push_args(layer) instructions.push_args(layer)
instructions.push_args(*test_util.with_length(path)) instructions.push_args(*test_util.with_length(path))
instructions.append('DIRECTORY_OPEN') instructions.append('DIRECTORY_OPEN')
self.dir_list.append(self.root.add_child(path, DirectoryStateTreeNode(True, True, has_known_prefix=False))) self.dir_list.append(self.root.add_child(path, DirectoryStateTreeNode(True, True, has_known_prefix=False, is_partition=(layer=='partition'))))
# print('%d. Selected %s, dir=%s, dir_id=%s, has_known_prefix=%s, dir_list_len=%d' \ # print('%d. Selected %s, dir=%s, dir_id=%s, has_known_prefix=%s, dir_list_len=%d' \
# % (len(instructions), 'DIRECTORY_OPEN', repr(self.dir_index), self.dir_list[-1].dir_id, False, len(self.dir_list)-1)) # % (len(instructions), 'DIRECTORY_OPEN', repr(self.dir_index), self.dir_list[-1].dir_id, False, len(self.dir_list)-1))
@ -378,7 +378,7 @@ class DirectoryTest(Test):
def get_result_specifications(self): def get_result_specifications(self):
return [ return [
ResultSpecification(self.stack_subspace, key_start_index=1, ordering_index=1), ResultSpecification(self.stack_subspace, key_start_index=1, ordering_index=1, global_error_filter=[1021]),
ResultSpecification(self.directory_log, ordering_index=0), ResultSpecification(self.directory_log, ordering_index=0),
ResultSpecification(self.subspace_log, ordering_index=0) ResultSpecification(self.subspace_log, ordering_index=0)
] ]