Skip to content

Commit

Permalink
Plt update 004 (#2965)
Browse files Browse the repository at this point in the history
* plt add ignore perf case, test=model

* plt add layer forward seed, test=model

* add saveload ci

* plt add allure desc, test=model

* revert plt
  • Loading branch information
Zeref996 authored Oct 10, 2024
1 parent 2b3dde4 commit 7d19455
Showing 1 changed file with 32 additions and 31 deletions.
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

0 comments on commit 7d19455

Please sign in to comment.