Issues with running the buildah
tests
#21
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Upon investigation it seems that the following tests were not executing correctly and/or giving false positives:
rhai_tests/buildah/01_builder_pattern.rhai
rhai_tests/buildah/02_image_operations.rhai
rhai_tests/buildah/03_container_operations.rhai
rhai_tests/buildah/run_all_tests.rhai
Each of these files uses has a
is_buildah_available
function at the beginning of the script to check for the presence of thebuildah
executable. As this function is inherently broken, none of the tests were able to get executed.The
run
function gets registered to the engine upon the execution the of a test script usingherodo
. Therun
function is part of theprocess
module, which gets registered when creating the engine (which gets done byherodo
when executing a.rhai
-script). The function itself only creates aRhaiCommandBuilder
instance (registered as aCommandBuilder
with the engine), but does not yet execute the command. For that, an additional.execute()
call is required.Fixing this (simple) bug lead to a chain of failing tests, which should -IMO- get fixed before continuing with #20.