Skip to content

Commit e4f5f0d

Browse files
authored
Test versions validations (#1598)
* test * basedir
1 parent 86169a9 commit e4f5f0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/smoke_test/smoke_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
stable_version = os.getenv("MATRIX_STABLE_VERSION")
1818
package_type = os.getenv("MATRIX_PACKAGE_TYPE")
1919
target_os = os.getenv("TARGET_OS")
20-
BASE_DIR = Path(__file__).parent.parent
20+
BASE_DIR = Path(__file__).parent.parent.parent
2121

2222
is_cuda_system = gpu_arch_type == "cuda"
2323
NIGHTLY_ALLOWED_DELTA = 3
@@ -85,6 +85,8 @@ def check_version(package: str) -> None:
8585
raise RuntimeError(
8686
f"{module['name']} version mismatch, expected {release_version[module['name']]} for channel {channel}. But its {module_version}"
8787
)
88+
else:
89+
print(f"{module['name']} version actual: {module_version} expected: {release_version[module['name']]} for channel {channel}.")
8890

8991
else:
9092
print(f"Skip version check for channel {channel} as stable version is None")

0 commit comments

Comments
 (0)