mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-03 11:37:09 +00:00
The flag the dead-run refusal names, wired through to the pipeline. The property-free flag goes back to meaning what it says.
40 lines
1.4 KiB
Go
40 lines
1.4 KiB
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"io"
|
|
|
|
"github.com/priyanshujain/sanderling/internal/testrun"
|
|
)
|
|
|
|
func runTestPipeline(ctx context.Context, options testOptions, stdout io.Writer) error {
|
|
return testrun.Execute(ctx, pipelineOptions(options), stdout)
|
|
}
|
|
|
|
// pipelineOptions maps the parsed flags onto the pipeline's options. A field
|
|
// dropped on the way through here is a run that executes one experiment cell
|
|
// and records another, which is worth being able to test on its own.
|
|
func pipelineOptions(options testOptions) testrun.Options {
|
|
return testrun.Options{
|
|
Spec: options.spec,
|
|
AllowNoProperties: options.allowNoProperties,
|
|
AllowNoGeneratorActions: options.allowNoGeneratorActions,
|
|
BundleID: options.bundleID,
|
|
Platform: options.platform,
|
|
AVD: options.avd,
|
|
Device: options.device,
|
|
IosDevice: options.iosDevice,
|
|
IosAppPath: options.iosAppPath,
|
|
AndroidAppPath: options.androidAppPath,
|
|
Duration: options.duration,
|
|
MaxSteps: options.maxSteps,
|
|
Seed: options.seed,
|
|
Output: options.output,
|
|
ClearData: options.clearData,
|
|
Generator: options.generator,
|
|
LabelSource: options.labelSource,
|
|
Arm: options.arm,
|
|
ExitOnViolation: options.exitOnViolation,
|
|
}
|
|
}
|