Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plt update 004 #2965

Merged
merged 10 commits into from
Oct 10, 2024
63 changes: 32 additions & 31 deletions framework/e2e/PaddleLT_new/PaddleLT.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,38 +23,39 @@ def test_module_layer(title, layerfile, testing, device_place_id):
# allure.dynamic.feature(case)
allure.dynamic.feature("case")

flags_str = ""
for key, value in os.environ.items():
if key.startswith("FLAGS_"):
flags_str = flags_str + key + "=" + value + ";"
flags_str += (
"paddle_commit="
+ os.environ.get("paddle_commit")
+ ";"
+ "TESTING="
+ os.environ.get("TESTING")
+ ";"
+ "CUDA_VISIBLE_DEVICES="
+ os.environ.get("CUDA_VISIBLE_DEVICES")
+ ";"
+ "FRAMEWORK="
+ os.environ.get("FRAMEWORK")
+ ";"
+ "USE_PADDLE_MODEL="
+ os.environ.get("USE_PADDLE_MODEL")
+ ";"
+ "wheel_url="
+ os.environ.get("wheel_url")
+ ";"
+ "docker_image="
+ os.environ.get("docker_image")
+ ";"
)
for key, value in os.environ.items():
if key.startswith("PLT_"):
flags_str = flags_str + key + "=" + value + ";"
# flags_str = ""
# for key, value in os.environ.items():
# if key.startswith("FLAGS_"):
# flags_str = flags_str + key + "=" + value + ";"
# flags_str += (
# "paddle_commit="
# + os.environ.get("paddle_commit")
# + ";"
# + "TESTING="
# + os.environ.get("TESTING")
# + ";"
# + "CUDA_VISIBLE_DEVICES="
# + os.environ.get("CUDA_VISIBLE_DEVICES")
# + ";"
# + "FRAMEWORK="
# + os.environ.get("FRAMEWORK")
# + ";"
# + "USE_PADDLE_MODEL="
# + os.environ.get("USE_PADDLE_MODEL")
# + ";"
# + "wheel_url="
# + os.environ.get("wheel_url")
# + ";"
# + "docker_image="
# + os.environ.get("docker_image")
# + ";"
# )
# for key, value in os.environ.items():
# if key.startswith("PLT_"):
# flags_str = flags_str + key + "=" + value + ";"

allure.dynamic.description(flags_str)
# allure.dynamic.description(flags_str)
allure.dynamic.description("Layer Test")
single_test = layertest.LayerTest(
title=title, layerfile=layerfile, testing=testing, device_place_id=device_place_id
)
Expand Down
Loading