File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -7845,14 +7845,16 @@ loop0:
78457845 cdAddress := sb .ContainerdAddress ()
78467846 if cdAddress == "" {
78477847 if checkContent {
7848- store := proxy .NewContentStore (c .ContentClient ())
7849- count := 0
7850- err := store .Walk (sb .Context (), func (info content.Info ) error {
7851- count ++
7852- return nil
7853- })
7854- require .NoError (t , err )
7855- require .Equal (t , 0 , count )
7848+ if err := workers .HasFeatureCompat (t , sb , workers .FeatureContentCheck ); err == nil {
7849+ store := proxy .NewContentStore (c .ContentClient ())
7850+ count := 0
7851+ err := store .Walk (sb .Context (), func (info content.Info ) error {
7852+ count ++
7853+ return nil
7854+ })
7855+ require .NoError (t , err )
7856+ require .Equal (t , 0 , count )
7857+ }
78567858 }
78577859 t .Logf ("checkAllReleasable: skipping check for exported tars in non-containerd test" )
78587860 return
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ func InitDockerdWorker() {
5050 Unsupported : []string {
5151 FeatureSecurityMode ,
5252 FeatureCNINetwork ,
53+ FeatureContentCheck ,
5354 },
5455 })
5556}
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ const (
3030 FeatureSecurityMode = "security_mode"
3131 FeatureSourceDateEpoch = "source_date_epoch"
3232 FeatureCNINetwork = "cni_network"
33+ FeatureContentCheck = "content_check"
3334)
3435
3536var features = map [string ]struct {}{
@@ -56,6 +57,7 @@ var features = map[string]struct{}{
5657 FeatureSecurityMode : {},
5758 FeatureSourceDateEpoch : {},
5859 FeatureCNINetwork : {},
60+ FeatureContentCheck : {},
5961}
6062
6163func CheckFeatureCompat (t * testing.T , sb integration.Sandbox , reason ... string ) {
You can’t perform that action at this time.
0 commit comments