Skip to content

Commit

Permalink
CI: add test case (#4835)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoucheng361 authored May 10, 2024
1 parent 84a139a commit 308dc87
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/scripts/hypo/command_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,15 @@ def test_config(self):
state.config(capacity=1, enable_acl=True, encrypt_secret=True, force=False, inodes=81, trash_days=0, user='root', yes=True)
state.teardown()

def skip_test_clone_4832(self):
#SEE https://github.com/juicedata/juicefs/issues/4834
state = JuicefsCommandMachine()
folders_0 = state.init_folders()
state.chmod(entry=folders_0, mode=2427, user='root')
folders_1 = state.mkdir(mode=2931, parent=folders_0, subdir='vhjp', umask=369, user='root')
state.chmod(entry=folders_1, mode=1263, user='root')
state.clone(entry=folders_1, new_entry_name='tbim', parent=folders_0, preserve=False, user='user1')
state.teardown()

if __name__ == '__main__':
unittest.main()
9 changes: 9 additions & 0 deletions .github/scripts/hypo/fs_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,14 @@ def test_clone_918(self):
v5 = state.clone_cp_file(entry=v3, new_entry_name='mbbb', parent=v1, preserve=True, user='root')
state.teardown()

def skip_test_xattr_4803(self):
# See: https://github.com/juicedata/juicefs/issues/4803
state = JuicefsMachine()
v1 = state.init_folders()
v19 = state.create_file(content=b'\xb5y', file_name='wums', mode='x', parent=v1, umask=16, user='root')
v29 = state.set_xattr(file=v19, flag=2, name='R', user='root', value=b'(9')
state.set_xattr(file=v19, flag=2, name='\x8ar', user='root', value=b'E$\xfe')
state.teardown()

if __name__ == '__main__':
unittest.main()

0 comments on commit 308dc87

Please sign in to comment.