Skip to content

Commit

Permalink
Add locate command inside the containers
Browse files Browse the repository at this point in the history
Fixes: #445
  • Loading branch information
ssbarnea committed Oct 30, 2024
1 parent 09cbb00 commit 4b21ee6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .config/dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ libera
libonig
microdnf
mknod
mlocate
modifyitems
netcommon
opencontainers
Expand Down
1 change: 1 addition & 0 deletions devspaces/context/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dnf install -y -q \
git \
git-core \
libssh-devel \
mlocate \
ncurses \
openssh-clients \
podman \
Expand Down
1 change: 1 addition & 0 deletions final/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ zsh \
util-linux-user \
which \
git \
mlocate \
nano \
vim \
dumb-init \
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def send_and_wait(self, cmd: str, wait_for: str, timeout: float = 3.0) -> list[s
def exit(self) -> None:
"""Exit the tmux session."""
if any("ansible-navigator" in cmd for cmd in self.cmds):
self.send_and_wait(cmd=":q", wait_for="workdir")
self.send_and_wait(cmd=":q", wait_for="workdir", timeout=6)
self.send_and_wait(cmd="exit", wait_for="")


Expand Down
1 change: 1 addition & 0 deletions tests/integration/test_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def test_container_in_container(
@pytest.mark.parametrize(
("app", "command"),
(
pytest.param("locate", None, id="locate"),
pytest.param("nano", None, id="nano"),
pytest.param("tar", None, id="tar"),
pytest.param("vi", None, id="vi"),
Expand Down

0 comments on commit 4b21ee6

Please sign in to comment.