diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2024-07-22 11:55:49 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-07-25 13:12:57 +0000 |
| commit | be9e3862febd938fc90a69277b9cc218a5e46e28 (patch) | |
| tree | 6ab258439997f1abf9da4e6e4af96f909408d3c1 /pkg/mgrconfig | |
| parent | e02ef79b9ce5bc23eac00a1919746a36a308a4ae (diff) | |
vm: add snapshot interface
Diffstat (limited to 'pkg/mgrconfig')
| -rw-r--r-- | pkg/mgrconfig/config.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/mgrconfig/config.go b/pkg/mgrconfig/config.go index 0909cd605..b4368f6d5 100644 --- a/pkg/mgrconfig/config.go +++ b/pkg/mgrconfig/config.go @@ -137,6 +137,11 @@ type Config struct { // on this value. SandboxArg int64 `json:"sandbox_arg"` + // Enables snapshotting mode. In this mode VM is snapshotted and restarted from the snapshot + // before executing each test program. This provides better reproducibility and avoids global + // accumulated state. Currently only qemu VMs and Linux support this mode. + Snapshot bool `json:"snapshot"` + // Use KCOV coverage (default: true). Cover bool `json:"cover"` // Use coverage filter. Supported types of filter: |
