From 2cdee3d8a11500720eadd85d2a19790ce5499bfc Mon Sep 17 00:00:00 2001 From: Sergio Cazzolato Date: Mon, 7 Feb 2022 15:01:26 -0300 Subject: [PATCH] tests: updated the documentation to run spread tests using external backend (#11341) * Updated the documentation to run spread tests using external backend Also some lines were removed * Update tests/external-backend.md Co-authored-by: Maciej Borzecki Co-authored-by: Maciej Borzecki --- tests/external-backend.md | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/tests/external-backend.md b/tests/external-backend.md index 4b1c0d79f4d..1835bfb1390 100644 --- a/tests/external-backend.md +++ b/tests/external-backend.md @@ -10,7 +10,7 @@ $ export SPREAD_EXTERNAL_ADDRESS=: * From the snapd project's root execute the script to setup ssh access to the instance: ``` -$ ./tests/lib/external/prepare-ssh.sh +$ ./tests/lib/external/prepare-ssh.sh ``` The default values for ip and port are `localhost`, `8022`. This script assumes that the user created by console-conf has the same name as the user executing the @@ -18,20 +18,7 @@ script, if that's not the case you can pass the created username as a third argu to the script. * From the snapd project's root execute the suite selecting the type of system of -the instance, currently `ubuntu-core-16-64`, `ubuntu-core-16-32`, `ubuntu-core-16-arm-32` and `ubuntu-core-16-arm-64` are supported: +the instance (spread.yaml file lists all supported systems) by executing the command: ``` -$ spread -v -reuse external:ubuntu-core-16-64 -``` -* You can execute again the suite by just reissuing the spread command, no need -to run the prepare script again. - -Suppose a new core revision is published and you want to check if the core snap from stable -can be safely refreshed to this new revision. Then, assuming you have a ubuntu-core instance -created from the stable channel and the new core has been published to `` you -can run the `tests/main/core-snap-refresh` like this: -``` -$ export SPREAD_EXTERNAL_ADDRESS=: -$ ./tests/lib/external/prepare-ssh.sh -$ export SPREAD_NEW_CORE_CHANNEL= -$ spread -v -reuse external:ubuntu-core-16-64:tests/main/core-snap-refresh +$ spread external:ubuntu-core-20-64 ```