case: s3_basic.py except arm64
This commit is contained in:
parent
399587511a
commit
b4f869d051
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue