Merge pull request #24374 from taosdata/case/TD-28123-3.0

case: s3_basic.py except arm64
This commit is contained in:
Alex Duan 2024-01-08 12:39:46 +08:00 committed by GitHub
commit 95e488c7ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View File

@ -84,6 +84,9 @@ class TDTestCase(TBase):
# run
def run(self):
tdLog.debug(f"start to excute {__file__}")
if eos.isArm64Cpu():
tdLog.success(f"{__file__} arm64 ignore executed")
return
# insert data
self.insertData()

View File

@ -22,10 +22,31 @@ import datetime
import platform
import subprocess
#
# platform
#
# if windows platform return True
def isWin():
return platform.system().lower() == 'windows'
def isArm64Cpu():
system = platform.system()
if system == 'Linux':
machine = platform.machine().lower()
# Check for ARM64 architecture on Linux systems
return machine in ['aarch64', 'armv8l']
elif system == 'Darwin' or system == 'Windows':
processor = platform.processor().lower()
# Check for ARM64 architecture on macOS and Windows systems
return processor in ['arm64', 'aarch64']
else:
print("Unsupported operating system")
return False
#
# execute programe
#