[2/2] travis: fix rawhide test by also installing sudo

Submitted by Adrian Reber on July 9, 2018, 6:28 a.m.

Details

Message ID 1531117707-8173-3-git-send-email-adrian@lisas.de
State Accepted
Series "Series without cover letter"
Commit 31e06b7e3380c38d10bc5971cdc85f60acc41211
Headers show

Commit Message

Adrian Reber July 9, 2018, 6:28 a.m.
From: Adrian Reber <areber@redhat.com>

Signed-off-by: Adrian Reber <areber@redhat.com>
---
 scripts/build/Dockerfile.fedora.tmpl | 5 +++++
 1 file changed, 5 insertions(+)

Patch hide | download patch | download mbox

diff --git a/scripts/build/Dockerfile.fedora.tmpl b/scripts/build/Dockerfile.fedora.tmpl
index 9e30da8..d255079 100644
--- a/scripts/build/Dockerfile.fedora.tmpl
+++ b/scripts/build/Dockerfile.fedora.tmpl
@@ -29,6 +29,7 @@  RUN dnf install -y \
 	python3-future \
 	python3-protobuf \
 	python3-junit_xml \
+	sudo \
 	tar \
 	which \
 	e2fsprogs \
@@ -48,4 +49,8 @@  WORKDIR /criu
 ENV CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes
 RUN mv .ccache /tmp && make mrproper && ccache -sz  && \
 	date && make -j $(nproc) CC="$CC" && date && ccache -s
+
+# The rpc test cases are running as user #1000, let's add the user
+RUN adduser -u 1000 test
+
 RUN make -C test/zdtm -j $(nproc)

Comments

Radostin Stoyanov July 10, 2018, 10:09 p.m.
On 09/07/18 07:28, Adrian Reber wrote:
> From: Adrian Reber <areber@redhat.com>
>
> Signed-off-by: Adrian Reber <areber@redhat.com>
> ---
>  scripts/build/Dockerfile.fedora.tmpl | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/scripts/build/Dockerfile.fedora.tmpl b/scripts/build/Dockerfile.fedora.tmpl
> index 9e30da8..d255079 100644
> --- a/scripts/build/Dockerfile.fedora.tmpl
> +++ b/scripts/build/Dockerfile.fedora.tmpl
> @@ -29,6 +29,7 @@ RUN dnf install -y \
>  	python3-future \
>  	python3-protobuf \
>  	python3-junit_xml \
> +	sudo \
>  	tar \
>  	which \
>  	e2fsprogs \
> @@ -48,4 +49,8 @@ WORKDIR /criu
>  ENV CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes
>  RUN mv .ccache /tmp && make mrproper && ccache -sz  && \
>  	date && make -j $(nproc) CC="$CC" && date && ccache -s
> +
> +# The rpc test cases are running as user #1000, let's add the user
> +RUN adduser -u 1000 test
> +
>  RUN make -C test/zdtm -j $(nproc)
ACK
Andrey Vagin July 10, 2018, 10:15 p.m.
On Tue, Jul 10, 2018 at 11:09:11PM +0100, Radostin Stoyanov wrote:
> On 09/07/18 07:28, Adrian Reber wrote:
> > From: Adrian Reber <areber@redhat.com>
> >
> > Signed-off-by: Adrian Reber <areber@redhat.com>
> > ---
> >  scripts/build/Dockerfile.fedora.tmpl | 5 +++++
> >  1 file changed, 5 insertions(+)
> >
> > diff --git a/scripts/build/Dockerfile.fedora.tmpl b/scripts/build/Dockerfile.fedora.tmpl
> > index 9e30da8..d255079 100644
> > --- a/scripts/build/Dockerfile.fedora.tmpl
> > +++ b/scripts/build/Dockerfile.fedora.tmpl
> > @@ -29,6 +29,7 @@ RUN dnf install -y \
> >  	python3-future \
> >  	python3-protobuf \
> >  	python3-junit_xml \
> > +	sudo \
> >  	tar \
> >  	which \
> >  	e2fsprogs \
> > @@ -48,4 +49,8 @@ WORKDIR /criu
> >  ENV CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes
> >  RUN mv .ccache /tmp && make mrproper && ccache -sz  && \
> >  	date && make -j $(nproc) CC="$CC" && date && ccache -s
> > +
> > +# The rpc test cases are running as user #1000, let's add the user
> > +RUN adduser -u 1000 test
> > +
> >  RUN make -C test/zdtm -j $(nproc)
> ACK

Radostin, please write a full tag, otherwise the patchwork will not
proper handle them.

Acked-by: Radostin Stoyanov <rstoyanov1@gmail.com>
Radostin Stoyanov July 10, 2018, 10:18 p.m.
On 09/07/18 07:28, Adrian Reber wrote:
> From: Adrian Reber <areber@redhat.com>
>
> Signed-off-by: Adrian Reber <areber@redhat.com>
> ---
>  scripts/build/Dockerfile.fedora.tmpl | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/scripts/build/Dockerfile.fedora.tmpl b/scripts/build/Dockerfile.fedora.tmpl
> index 9e30da8..d255079 100644
> --- a/scripts/build/Dockerfile.fedora.tmpl
> +++ b/scripts/build/Dockerfile.fedora.tmpl
> @@ -29,6 +29,7 @@ RUN dnf install -y \
>  	python3-future \
>  	python3-protobuf \
>  	python3-junit_xml \
> +	sudo \
>  	tar \
>  	which \
>  	e2fsprogs \
> @@ -48,4 +49,8 @@ WORKDIR /criu
>  ENV CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes
>  RUN mv .ccache /tmp && make mrproper && ccache -sz  && \
>  	date && make -j $(nproc) CC="$CC" && date && ccache -s
> +
> +# The rpc test cases are running as user #1000, let's add the user
> +RUN adduser -u 1000 test
> +
>  RUN make -C test/zdtm -j $(nproc)

Acked-by: Radostin Stoyanov <rstoyanov1@gmail.com>