// Run runs a test setup.
Run runs a test setup.
// Run runs a test setup .
func Run(ctx context.Context, ts TestSetup) error {
	c, err := client.NewClient(ts.PowergateAddr)
	defer func() {
		if err := c.Close(); err != nil {
			log.Errorf("closing powergate client: %s", err)
		}
	}()
	if err != nil {
		return fmt.Errorf("creating client: %s", err)
	}
	if err := runSetup(ctx, c, ts); err != nil {
		return fmt.Errorf("running test setup: %s", err)
	}
	return nil
}
func Run ( ctx context . Context , ts TestSetup ) error { c , err := client . NewClient ( ts . PowergateAddr ) defer func ( ) { if err := c . Close ( ) ; err != nil { log . Errorf ( " " , err ) } } ( ) if err != nil { return fmt . Errorf ( " " , err ) } if err := runSetup ( ctx , c , ts ) ; err != nil { return fmt . Errorf ( " " , err ) } return nil }
Run runs a test setup.
Run runs a test setup .