Skip to content

Commit

Permalink
skip unsupported architecture and distro version
Browse files Browse the repository at this point in the history
  • Loading branch information
LiliDeng committed Sep 27, 2024
1 parent 615b93c commit f177b39
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion microsoft/testsuites/virtualclient/virtualclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
search_space,
simple_requirement,
)
from lisa.operating_system import Debian
from lisa.operating_system import Debian, Ubuntu
from lisa.tools import VcRunner
from lisa.util import SkippedException


@TestSuiteMetadata(
Expand Down Expand Up @@ -52,6 +53,18 @@ def perf_vc_redis(self, environment: Environment) -> None:
timeout=3000,
)
def perf_vc_postgresql(self, environment: Environment) -> None:
node = environment.nodes[0]
arch = node.os.get_kernel_information().hardware_platform # type: ignore
if arch == "aarch64":
raise SkippedException(
f"Virtual Client PostgreSQL doesn't support {arch} architecture."
)
if type(node.os) == Ubuntu and node.os.information.version < "20.4.0":
raise SkippedException(
f"Virtual Client PostgreSQL doesn't support distro {type(node.os)}"
f" version {node.os.information.version}."
)

self._run_work_load(
environment=environment,
profile_name="PERF-POSTGRESQL-HAMMERDB-TPCC",
Expand Down

0 comments on commit f177b39

Please sign in to comment.