mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Only check testname for missing
This commit is contained in:
parent
90cd496e72
commit
40d80195f2
@ -329,7 +329,7 @@ func commentToConformanceData(comment string) *conformanceData {
|
||||
descLines = append(descLines, line)
|
||||
}
|
||||
}
|
||||
if cd.Release == "" && cd.TestName == "" {
|
||||
if cd.TestName == "" {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -147,9 +147,8 @@ func TestCommentToConformanceData(t *testing.T) {
|
||||
desc: "No Release or Testname leads to nil",
|
||||
input: "Description: foo",
|
||||
}, {
|
||||
desc: "Release but no Testname does not result in nil",
|
||||
input: "Release: v1.1\nDescription: foo",
|
||||
expected: &conformanceData{Release: "v1.1", Description: "foo"},
|
||||
desc: "Release but no Testname should result in nil",
|
||||
input: "Release: v1.1\nDescription: foo",
|
||||
}, {
|
||||
desc: "Testname but no Release does not result in nil",
|
||||
input: "Testname: mytest\nDescription: foo",
|
||||
|
Loading…
Reference in New Issue
Block a user