| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Scripts used to test Linux based devices
Run
pip3 install -r requirements.txt
Run
python3 rolling_reboot_test.py --device <ip addr> --user user --password password
Where user and password describe an SSH access user
When running with non root accounts, add a line like this to your /etc/sudoers file:
user ALL=NOPASSWD: /sbin/reboot
Where user is the username passed with the --user argument.
Then run the test case with the --sudo argument specified to use sudo with the reboot command
Run
python3 swupdate_test_tegra.py --device <ip addr> --updatefile <file>
To run a swupdate test for OE4T tegra based platforms which include swupdate with A/B rootfs.
The test will perform 100 consecutive updates, verifying boot and rootfs slots are switched synchronously after each.
swupdate_test_sequence.py can download artifacts from a GitHub Actions run and apply them to a connected device in order.
Artifacts are expected to be named like: <project>-<branch>-<image>-<machine>-swu
For a given --project, --image, and --machine, it will attempt to apply updates in this release order:
Example:
export GITHUB_TOKEN=<token> python3 swupdate_test_sequence.py \ https://github.com/Trellis-Logic/kas-demos/actions/runs/<run_id> \ --device <ip addr> \ --project swupdate-rootfs-overlay-oe4t \ --image demo-image-base \ --machine jetson-orin-nano-devkit-nvme
Artifact download via the GitHub API typically requires authentication.
You can provide the token in any of these ways:
GITHUB_TOKEN=<token>
The token must have permission to read Actions artifacts for the target repo/run (for fine-grained tokens this is typically an “Actions: read” permission; for classic tokens it may require broader repo access depending on repo visibility).
Avoid hard-coding tokens in scripts or committing them to the repo.
If you use the .env approach, this repo ignores .env via .gitignore.
export GITHUB_TOKEN=<token> python3 swupdate_test_sequence.py \ https://github.com/Trellis-Logic/kas-demos/actions/runs/<run_id> \ --project swupdate-rootfs-overlay-oe4t \ --image demo-image-base \ --machine jetson-orin-nano-devkit-nvme \ --download-only
If you have already downloaded/extracted artifacts locally, pass the directory and use --skip-download:
python3 swupdate_test_sequence.py /path/to/artifacts \ --skip-download \ --device <ip addr> \ --project swupdate-rootfs-overlay-oe4t \ --image demo-image-base \ --machine jetson-orin-nano-devkit-nvme
| Back | FazBrowse Home | New Git URL |