From a0402e2c9ed3b3da97acfd2390e46eb1f889cf19 Mon Sep 17 00:00:00 2001 From: yanghaoran Date: Tue, 12 Apr 2022 19:54:15 +0800 Subject: [PATCH] attempt to restore windows st failed, revert testcases that were taken down --- tests/st/networks/test_cpu_lenet_enable_rdr.py | 2 +- tests/st/numpy_native/test_array_creations.py | 2 +- tests/st/numpy_native/test_logic_ops.py | 2 +- tests/st/numpy_native/test_math_ops.py | 8 ++++---- tests/st/ops/cpu/test_broadcast_to_op.py | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/st/networks/test_cpu_lenet_enable_rdr.py b/tests/st/networks/test_cpu_lenet_enable_rdr.py index dab08e82b4e..8e0f003fddc 100644 --- a/tests/st/networks/test_cpu_lenet_enable_rdr.py +++ b/tests/st/networks/test_cpu_lenet_enable_rdr.py @@ -23,7 +23,7 @@ def test_train(device_type): test_lenet() @security_off_wrap -@pytest.mark.level1 +@pytest.mark.level0 @pytest.mark.platform_x86_cpu @pytest.mark.env_onecard def test_train_with_CPU(): diff --git a/tests/st/numpy_native/test_array_creations.py b/tests/st/numpy_native/test_array_creations.py index bdc67ee4471..05503250aa2 100644 --- a/tests/st/numpy_native/test_array_creations.py +++ b/tests/st/numpy_native/test_array_creations.py @@ -595,7 +595,7 @@ def onp_trace(arr): return onp.trace(arr, offset=4, axis1=1, axis2=2) -@pytest.mark.level1 +@pytest.mark.level0 @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training @pytest.mark.platform_x86_gpu_training diff --git a/tests/st/numpy_native/test_logic_ops.py b/tests/st/numpy_native/test_logic_ops.py index 87223203596..aac6a4f1b1b 100644 --- a/tests/st/numpy_native/test_logic_ops.py +++ b/tests/st/numpy_native/test_logic_ops.py @@ -203,7 +203,7 @@ def onp_isnan(x): return onp.isnan(x) -@pytest.mark.level1 +@pytest.mark.level0 @pytest.mark.platform_x86_gpu_training @pytest.mark.platform_x86_cpu @pytest.mark.env_onecard diff --git a/tests/st/numpy_native/test_math_ops.py b/tests/st/numpy_native/test_math_ops.py index 44f29ffebae..c47391aca9d 100644 --- a/tests/st/numpy_native/test_math_ops.py +++ b/tests/st/numpy_native/test_math_ops.py @@ -919,7 +919,7 @@ def onp_maximum(x1, x2): return onp.maximum(x1, x2) -@pytest.mark.level1 +@pytest.mark.level0 @pytest.mark.platform_x86_gpu_training @pytest.mark.platform_x86_cpu @pytest.mark.env_onecard @@ -957,7 +957,7 @@ def onp_clip(x): return a, b, c, d, e, f -@pytest.mark.level1 +@pytest.mark.level0 @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training @pytest.mark.platform_x86_gpu_training @@ -1806,7 +1806,7 @@ def onp_lcm(x, y): return onp.lcm(x, y) -@pytest.mark.level1 +@pytest.mark.level0 @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training @pytest.mark.platform_x86_gpu_training @@ -2034,7 +2034,7 @@ def test_multi_dot(): match_all_arrays(mnp.multi_dot(mnp_arrays[1:-1]), onp.linalg.multi_dot(arrays[1:-1])) -@pytest.mark.level1 +@pytest.mark.level0 @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training @pytest.mark.platform_x86_gpu_training diff --git a/tests/st/ops/cpu/test_broadcast_to_op.py b/tests/st/ops/cpu/test_broadcast_to_op.py index cb9bcee1112..925d97ea78a 100644 --- a/tests/st/ops/cpu/test_broadcast_to_op.py +++ b/tests/st/ops/cpu/test_broadcast_to_op.py @@ -104,7 +104,7 @@ def test_broadcast_dyn_init(): assert np.allclose(output.asnumpy(), expect) -@pytest.mark.level1 +@pytest.mark.level0 @pytest.mark.platform_x86_cpu @pytest.mark.env_onecard def test_broadcast_dyn_invalid_init():