Skip to content

Commit

Permalink
Move some level0 testcases to level1
Browse files Browse the repository at this point in the history
  • Loading branch information
huangbingjian authored and nicholasyanghaoran committed Jul 22, 2024
1 parent eb618bb commit 076b061
Show file tree
Hide file tree
Showing 52 changed files with 82 additions and 91 deletions.
11 changes: 1 addition & 10 deletions .jenkins/check/config/filter_pylint.txt
Original file line number Diff line number Diff line change
Expand Up @@ -222,27 +222,18 @@
"mindspore/tests/st/networks/test_gpu_alexnet.py" "unused-variable"
"mindspore/tests/st/networks/test_lenet.py" "unused-variable"
"mindspore/tests/st/ops/custom_ops_tbe/cus_add3.py" "unused-import"
"mindspore/tests/st/control/inner/test_002_single_for.py" "not-an-iterable"
"mindspore/tests/st/ops/ascend/test_aicpu_ops/test_strided_slice.py" "redefined-outer-name"
"mindspore/tests/st/ops/ascend/test_aicpu_ops/test_strided_slice.py" "redefined-builtin"
"mindspore/tests/st/ops/ascend/test_aicpu_ops/test_strided_slice_grad.py" "redefined-outer-name"
"mindspore/tests/st/pynative/parser/test_parser_construct.py" "bad-super-call"
"mindspore/tests/st/gradient/test_grad_return_type.py" "unused-variable"
"mindspore/tests/ut/python/optimizer/test_auto_grad.py" "broad-except"
"mindspore/tests/st/syntax/simple_expression/test_sequence_getitem.py" "simplifiable-if-statement"
"mindspore/tests/st/graph_syntax/operators/test_ops_signatures.py" "consider-iterating-dictionary"
"mindspore/tests/st/fallback/control_flow/test_fallback_100_if_after_if.py" "unused-variable"
"mindspore/tests/st/numpy_native/test_array_ops.py" "useless-super-delegation"
"mindspore/tests/ut/python/pynative_mode/test_stop_gradient.py" "useless-super-delegation"
"mindspore/tests/ut/python/mindir/test_mindir_export.py" "no-else-return"
"mindspore/tests/" "c-extension-no-member"
"mindspore/tests/st/parameter/test_parameter_celllist.py" "protected-access"
"mindspore/tests/ut/python/rewrite/test_cellcontainer.py" "protected-access"
"mindspore/tests/st/ms_adapter/_register/utils.py" "protected-access"
"mindspore/tests/st/ms_adapter/_register/utils.py" "unused-variable"
"mindspore/tests/st/ms_adapter/test_ms_adapter_base.py" "unidiomatic-typecheck"
"mindspore/tests/st/ms_adapter/test_operator.py" "unidiomatic-typecheck"
"mindspore/tests/st/ms_adapter/test_python_builtins.py" "unidiomatic-typecheck"
"mindspore/tests/" "wrong-import-position"
"mindspore/tests/" "wrong-import-order"
"mindspore/tests/st/ops/dynamic_shape/" "line-too-long"
Expand All @@ -252,13 +243,13 @@
"mindspore/tests/st/ops/dynamic_shape/" "too-many-arguments"
"mindspore/tests/st/ops/dynamic_shape/" "too-many-locals"
"mindspore/tests/ut/python/graph_syntax/test_invalid_attribute.py" "misplaced-bare-raise"
"mindspore/tests/st/fallback/test_graph_fallback_runtime_is_isnot.py" "iteral-comparison"
"mindspore/tests/st/dump/dump_test_utils.py" "too-many-nested-blocks"
"mindspore/tests/ut/python/parallel/test_dynamic_shape_graph_utils.py" "too-many-function-args"
"mindspore/tests/ut/python/parallel/test_dynamic_shape_multi_axis.py" "useless-super-delegation"
"mindspore/tests/st/ops/ascend/test_aclnn_ops/test_all_finite.py" "singleton-comparison"
"mindspore/tests/st/pynative/pyboost/test_pyboost_ops_abs.py" "redefined-builtin"
"mindspore/tests/st/mint/test_chunk.py" "pointless-string-statement"
"mindspore/tests/st/compiler/fallback/control_flow/test_fallback_100_if_after_if.py" "unused-variable"

#MindSpore Lite
"mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/generator.py" "redefined-builtin"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_single_if_4():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_if_in_if_5():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_if_in_while_1():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_if_in_for_tensor():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_while_in_if_1():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_while_in_while_1():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_while_in_for_1():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_for_in_if_tensor():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_for_in_while_tensor():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_if_after_if_tensor():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_if_after_while_tensor():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_if_after_if_in_if_tensor():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_if_after_if_in_while_tensor():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_if_after_if_in_for_tensor_2():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_if_after_while_in_if_tensor():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_if_after_while_in_while_tensor():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_if_after_while_in_for_tensor():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_if_after_for_in_if_tensor():
Expand All @@ -45,7 +45,7 @@ def control_flow_if_after_for_in_if():
assert res == 5


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_if_after_for_in_if_numpy():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_if_after_for_in_while_tensor():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_ascend
def test_if_after_for_in_for_numpy():
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_while_after_if_tensor():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_while_after_while_tensor():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_while_after_for_tensor_2():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_while_after_if_in_if_tensor():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_while_after_if_in_while_tensor():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_while_after_if_in_for_tensor():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_while_after_while_in_if_tensor():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_while_after_while_in_while_numpy():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_while_after_while_in_for_numpy():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_while_after_for_in_if_1():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_while_after_for_in_while_1():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_while_after_for_in_for_2():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_for_after_if_2():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_for_after_while_1():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_for_after_for_2():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_for_after_if_in_if_tensor_2():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_for_after_if_in_while_tensor():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
context.set_context(mode=context.GRAPH_MODE)


@case_register.level0
@case_register.level1
@case_register.target_gpu
@case_register.target_ascend
def test_for_after_while_in_if_1():
Expand Down
Loading

0 comments on commit 076b061

Please sign in to comment.