Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: capture screenshot on failure #284

Merged
merged 5 commits into from
Aug 19, 2024
Merged

tests: capture screenshot on failure #284

merged 5 commits into from
Aug 19, 2024

Commits on Aug 17, 2024

  1. tests: provide README

    Provide tests/README.md for usage instructions, when trying to reproduce
    the GitHub tests inside a local VM.
    mika authored and zeha committed Aug 17, 2024
    Configuration menu
    Copy the full SHA
    9272096 View commit details
    Browse the repository at this point in the history
  2. tests/build-vm-and-test.sh: install curl

    Our tests/build-vm-and-test.sh script relies on presence of curl
    command, so ensure it's available.
    mika authored and zeha committed Aug 17, 2024
    Configuration menu
    Copy the full SHA
    bffadf3 View commit details
    Browse the repository at this point in the history
  3. tests/serial-console-connection: use python3 in shebang

    We need to replace `/usr/bin/env python` with `/usr/bin/env python3`
    as /usr/bin/python is provided only by the python-is-python3 or
    python-is-python2 packages through a symlink (meant for third-party or
    legacy scripts, see https://wiki.debian.org/Python), though those might
    not be present e.g. when running in a local Debian bookworm VM.
    mika authored and zeha committed Aug 17, 2024
    Configuration menu
    Copy the full SHA
    95bd689 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2024

  1. tests/serial-console-connection: update default hostname

    For bookworm.
    mika authored and zeha committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    844419c View commit details
    Browse the repository at this point in the history
  2. tests: Try to capture screenshot via VNC if serial-console-connection…

    … fails
    
    While debugging the failing GitHub Actions (see #278), we noticed that
    it might serve useful to have a screenshot of the booted system
    available. We can capture such a screenshot via vncsnapshot.
    
    NOTE: we move the files inside `results` only if the directory as such
    exists in $PWD, otherwise we'd fail the build when being executed as
    `tests/build-vm-and-test.sh test` from inside the grml-debootstrap.git.
    This happens when manually reproducing the GH tests, though then
    `build-vm-and-test.sh` is supposed to be executed from the parent
    directory of the `tests` directory (being the grml-debootstrap.git
    checkout).
    mika authored and zeha committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    13e2a39 View commit details
    Browse the repository at this point in the history