Skip to content

Commit

Permalink
Run test cases on hns
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghua committed Nov 12, 2024
1 parent a6ee9e8 commit 7577b3a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci_hns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,5 @@ jobs:
echo "TOSFS_LOGGING_LEVEL=${{ vars.TOSFS_LOGGING_LEVEL }}" >> $GITHUB_ENV
echo "TOS_SDK_LOGGING_LEVEL=${{ vars.TOS_SDK_LOGGING_LEVEL }}" >> $GITHUB_ENV
echo "TOS_BUCKET=${{ matrix.bucket-name }}" >> $GITHUB_ENV
echo "HNS_DISABLE_SPECIAL_CHAR_TESTS=${{ vars.HNS_DISABLE_SPECIAL_CHAR_TESTS }}" >> $GITHUB_ENV
- name: Run tests
run: make test
5 changes: 1 addition & 4 deletions tosfs/tests/test_tosfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,10 +427,7 @@ def test_put(tosfs: TosFileSystem, bucket: str, temporary_workspace: str):
) as file:
assert file.read() == "hello world"

if (
tosfs._is_hns_bucket(bucket)
and os.environ.get("HNS_DISABLE_SPECIAL_CHAR_TESTS") == "true"
):
if tosfs._is_fns_bucket(bucket):
with tempfile.TemporaryDirectory() as local_temp_dir:
dir_2 = f"{local_temp_dir}/生技??174号文/"
dir_3 = f"{local_temp_dir}/生技**174号文/"
Expand Down

0 comments on commit 7577b3a

Please sign in to comment.