mirror of
https://github.com/LTTLabsOSS/markbench-tests.git
synced 2026-01-08 21:48:00 -05:00
everyone loves a linter
This commit is contained in:
@@ -4,7 +4,7 @@ import getpass
|
||||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from gravitymark_utils import friendlyTestName, get_args, get_score, create_gravitymark_command
|
||||
from gravitymark_utils import friendly_test_name, get_args, get_score, create_gravitymark_command
|
||||
|
||||
PARENT_DIR = str(Path(sys.path[0], ".."))
|
||||
sys.path.append(PARENT_DIR)
|
||||
@@ -57,7 +57,7 @@ try:
|
||||
sys.exit(1)
|
||||
|
||||
report = {
|
||||
"test": friendlyTestName(args.api),
|
||||
"test": friendly_test_name(args.api),
|
||||
"score": score,
|
||||
"unit": "score"
|
||||
}
|
||||
|
||||
@@ -23,7 +23,8 @@ CLI_OPTIONS = {
|
||||
"-status": "1"
|
||||
}
|
||||
|
||||
def friendlyTestName(api: str) -> str:
|
||||
def friendly_test_name(api: str) -> str:
|
||||
"""return a friendlier string given the API harness argument"""
|
||||
if api == "vulkan":
|
||||
return "GravityMark Vulkan"
|
||||
if api == "opengl":
|
||||
@@ -32,6 +33,7 @@ def friendlyTestName(api: str) -> str:
|
||||
return "GravityMark DX12"
|
||||
if api == "direct3d11":
|
||||
return "GravityMark DX11"
|
||||
return api
|
||||
|
||||
def get_args() -> Namespace:
|
||||
"""Get command line arguments for test script"""
|
||||
|
||||
Reference in New Issue
Block a user