[FIX] Packaging: RedHat: prompt overriden in docker

RPM packages did not pass the tests because the centos prompt changed
and thus did not match the regexp anymore. We now explicitely specify
the prompt in our Dockerfiles to prevent such issues.
This commit is contained in:
Aaron Bohy 2015-01-20 16:46:08 +01:00
parent fb4c822000
commit a911265c12
3 changed files with 7 additions and 3 deletions

View File

@ -17,9 +17,11 @@ RUN rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noar
yum clean all && \
pip install xlwt http://download.gna.org/pychart/PyChart-1.39.tar.gz
# Manual start of postgres
# Postgres configuration
RUN mkdir -p /var/lib/postgres/data
RUN chown -R postgres:postgres /var/lib/postgres/data
RUN chmod 0700 /var/lib/postgres/data
RUN su postgres -c "initdb -D /var/lib/postgres/data -E UTF-8"
RUN cp /usr/share/pgsql/postgresql.conf.sample /var/lib/postgres/data/postgresql.conf
RUN cp /usr/share/pgsql/postgresql.conf.sample /var/lib/postgres/data/postgresql.conf
RUN echo "PS1=\"[\u@nightly-tests] # \"" > ~/.bashrc

View File

@ -64,3 +64,5 @@ RUN apt-get update -qq && \
python-xlwt \
python-yaml -y && \
rm -rf /var/lib/apt/lists/*
RUN echo "PS1=\"[\u@nightly-tests] # \"" > ~/.bashrc

View File

@ -145,7 +145,7 @@ class OdooDocker(object):
def __init__(self):
self.log_file = NamedTemporaryFile(mode='w+b', prefix="bash", suffix=".txt", delete=False)
self.port = 8069 # TODO sle: reliable way to get a free port?
self.prompt_re = '(\r\nroot@|bash-).*# '
self.prompt_re = '\[root@nightly-tests\] #'
self.timeout = 1000
def system(self, command):