From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Daniel Sangorrin Date: Mon, 25 Feb 2019 09:42:21 +0900 Message-Id: <1551055341-35354-1-git-send-email-daniel.sangorrin@toshiba.co.jp> Subject: [Fuego] [PATCH] bash-completion: add completion script for ftc List-Id: Mailing list for the Fuego test framework List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fuego@lists.linuxfoundation.org As proposed during the Fuego Jamboree I have added bash completion for the ftc command. Signed-off-by: Daniel Sangorrin --- Dockerfile | 5 ++++- Dockerfile.nojenkins | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b183e1a..80e799a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,7 +45,8 @@ RUN pip install filelock # Fuego command dependencies RUN apt-get update && apt-get -yV install \ - git sshpass openssh-client sudo net-tools wget curl lava-tool + git sshpass openssh-client sudo net-tools wget curl lava-tool \ + bash-completion # Default SDK for testing locally or on an x86 board RUN apt-get update && apt-get -yV install \ @@ -202,6 +203,8 @@ RUN chown -R jenkins:jenkins $JENKINS_HOME/ # ============================================================================== RUN ln -s /fuego-core/scripts/ftc /usr/local/bin/ +COPY fuego-core/scripts/ftc_completion.sh /etc/bash_completion.d/ftc +RUN echo ". /etc/bash_completion" >> /root/.bashrc # ============================================================================== # Lava diff --git a/Dockerfile.nojenkins b/Dockerfile.nojenkins index f3392f9..2883f54 100644 --- a/Dockerfile.nojenkins +++ b/Dockerfile.nojenkins @@ -56,7 +56,8 @@ RUN pip install filelock # Fuego command dependencies RUN apt-get update && apt-get -yV install \ - git sshpass openssh-client sudo net-tools wget curl lava-tool + git sshpass openssh-client sudo net-tools wget curl lava-tool \ + bash-completion # Default SDK for testing locally or on an x86 board RUN apt-get update && apt-get -yV install \ @@ -113,6 +114,8 @@ RUN /bin/bash -c 'git clone https://github.com/tbird20d/fserver.git /usr/local/l # ============================================================================== RUN ln -s /fuego-core/scripts/ftc /usr/local/bin/ +COPY fuego-core/scripts/ftc_completion.sh /etc/bash_completion.d/ftc +RUN echo ". /etc/bash_completion" >> /root/.bashrc # ============================================================================== # Lava -- 2.7.4