mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
tstest/integration/vms: fix docs, qemu-img invocation
Signed-off-by: Tom DNetto <tom@tailscale.com>
This commit is contained in:
parent
55161b3d92
commit
858ab80172
@ -26,19 +26,16 @@ This test also requires the following:
|
||||
- the user running these tests must have access to `/dev/kvm` (being in the
|
||||
`kvm` group should suffice)
|
||||
|
||||
This optionally requires an AWS profile to be configured at the [default
|
||||
path](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html).
|
||||
The S3 bucket is set so that the requester pays. Please keep this in mind when
|
||||
running these tests on your machine. If you are uncomfortable with the cost from
|
||||
downloading from S3, you should pass the `-no-s3` flag to disable downloads from
|
||||
S3. However keep in mind that some distributions do not use stable URLs for each
|
||||
individual image artifact, so there may be spurious test failures as a result.
|
||||
The `-no-s3` flag is needed to disable downloads from S3, which require
|
||||
credentials. However keep in mind that some distributions do not use stable URLs
|
||||
for each individual image artifact, so there may be spurious test failures as a
|
||||
result.
|
||||
|
||||
If you are using [Nix](https://nixos.org), you can run all of the tests with the
|
||||
correct command line tools using this command:
|
||||
|
||||
```console
|
||||
$ nix-shell -p openssh -p go -p qemu -p cdrkit --run "go test . --run-vm-tests --v --timeout 30m"
|
||||
$ nix-shell -p openssh -p go -p qemu -p cdrkit --run "go test . --run-vm-tests --v --timeout 30m --no-s3"
|
||||
```
|
||||
|
||||
Keep the timeout high for the first run, especially if you are not downloading
|
||||
|
@ -103,7 +103,8 @@ func mkLayeredQcow(t *testing.T, tdir string, d Distro, qcowBase string) {
|
||||
|
||||
run(t, tdir, "qemu-img", "create",
|
||||
"-f", "qcow2",
|
||||
"-o", "backing_file="+qcowBase,
|
||||
"-b", qcowBase,
|
||||
"-F", "qcow2",
|
||||
filepath.Join(tdir, d.Name+".qcow2"),
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user