This change adds a new environment variable, TESTS_LOG_TEST_ARTIFACTS,
which when set to `yes` will entice the tests to log the contents of the
files used in the tests. This can help in debugging scenarios in which
the input files are coded into the scenario itself.
Signed-off-by: Nicolas Bock <email address hidden>
the tests were only being run on UTC timezone which hides most
of the timezone problems the code potentially has. this patch extends
the existing `py3` tox environment to oass a non-utc timezone to the
test environment.
Fixes: #691
Signed-off-by: Mustafa Kemal Gilor <email address hidden>
Necessary prerequesite for adding bash completion for debian package
support. This change adds the completion script as an artifact to the
repository and makes the necessary changes in the snap definition to use
that artifcat.
Signed-off-by: Nicolas Bock <email address hidden>
host_helpers/systemd: proper timezone handling for `systemctl status` timestamps
the systemctl timestamps are suffixed with the source system's timezone,
and unfortunately the default format does not match with any international
standard formats. this code introduces proper timezone handling logic
to the `systemctl status` timestamp parsing code.
Signed-off-by: Mustafa Kemal Gilor <email address hidden>
host_helpers/systemd: fix start_time does not respect timezone when reading from systemd status
the start_time method first tries to pull the start time info from system journal
which already accounts for the timestamp's timezone. if it fails, it falls back to
parsing `systemctl status --all` output and it ignores the specified timezone in the
timestamp, which causes it to treat time in the local timezone of the running system.
this patch fixes that.
Fixes #689
Signed-off-by: Mustafa Kemal Gilor <email address hidden>