Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: YuQiang <y_q_email@163.com>
  • Loading branch information
PerseidMeteor committed Mar 13, 2024
1 parent e42e08c commit 46317ad
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions smoke/tests/commit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,15 @@ func (c *CommitTestSuite) TestCommitContainer() test.Generator {
scenarios := tool.DescartesIterator{}
scenarios.
Dimension(paramImage, []interface{}{"ubuntu:latest"}).
Dimension(paramFSVersion, []interface{}{"5", "6"}).
Dimension(paramZran, []interface{}{false, true}).
Skip(
func(param *tool.DescartesItem) bool {
// Zran and Batch not work with rafs v5.
if param.GetString(paramFSVersion) == "5" && (param.GetBool(paramZran)) {
return true
}
return false
})
Dimension(paramFSVersion, []interface{}{"5", "6"})

return func() (name string, testCase test.Case) {
if !scenarios.HasNext() {
return
}
scenario := scenarios.Next()
ctx := tool.DefaultContext(c.t)
ctx.Build.FSVersion = scenario.GetString(paramFSVersion)
ctx.Build.OCIRef = scenario.GetBool(paramZran)

image, committedImage := c.prepareImage(c.t, ctx, scenario.GetString(paramImage))
return scenario.Str(), func(t *testing.T) {
Expand Down

0 comments on commit 46317ad

Please sign in to comment.