Skip to content

Commit

Permalink
Fix virtualenv test
Browse files Browse the repository at this point in the history
  • Loading branch information
mohierf committed Jan 3, 2017
1 parent 72e24c9 commit 1b10b79
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 33 deletions.
3 changes: 2 additions & 1 deletion test/test_virtualenv_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ for raw_file in $(awk '{print $2}' $1); do
if [[ "$exp_chmod" == "" ]]; then
echo "Can't find file in conf after sed - RAWFILE:$raw_file, FILE:$file"
fi
echo "Found the file: $file"

cur_chmod=$(stat -c "%a" $file 2>> /tmp/stat.failure)
if [[ $? -ne 0 ]];then
Expand Down Expand Up @@ -197,7 +198,7 @@ for pyenv in "root" "virtualenv"; do
echo "Installing alignak..."
$SUDO python setup.py $install_type 2>&1 >/dev/null

echo "Running test..."
echo "Running test (${install_type}_${pyenv}${SUFFIX_TESTFILE})..."
test_setup "test/virtualenv_install_files/${install_type}_${pyenv}${SUFFIX_TESTFILE}"

if [[ $? -ne 0 ]];then
Expand Down
9 changes: 1 addition & 8 deletions test/virtualenv_install_files/install_root
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
755 /usr/local/bin/alignak-scheduler
755 /usr/local/etc/alignak
644 /usr/local/etc/alignak/alignak.cfg
644 /usr/local/etc/alignak/alignak.ini
755 /usr/local/etc/alignak/certs
644 /usr/local/etc/alignak/certs/README
755 /usr/local/etc/alignak/daemons
Expand Down Expand Up @@ -98,14 +99,6 @@
644 /usr/local/etc/alignak/arbiter/resource.d/paths.cfg
755 /usr/local/etc/alignak/arbiter/modules
644 /usr/local/etc/alignak/arbiter/modules/readme.cfg
644 /usr/local/etc/default/alignak
755 /usr/local/etc/init.d/alignak
755 /usr/local/etc/init.d/alignak-arbiter
755 /usr/local/etc/init.d/alignak-broker
755 /usr/local/etc/init.d/alignak-poller
755 /usr/local/etc/init.d/alignak-reactionner
755 /usr/local/etc/init.d/alignak-receiver
755 /usr/local/etc/init.d/alignak-scheduler
755 /usr/local/lib/PYTHONVERSION/dist-packages/alignak
755 /usr/local/lib/PYTHONVERSION/dist-packages/alignak-ALIGNAKVERSION.egg-info
644 /usr/local/lib/PYTHONVERSION/dist-packages/alignak/__init__.py
Expand Down
9 changes: 1 addition & 8 deletions test/virtualenv_install_files/install_root_travis
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
755 /usr/local/bin/alignak-scheduler
755 /usr/local/etc/alignak
644 /usr/local/etc/alignak/alignak.cfg
644 /usr/local/etc/alignak/alignak.ini
755 /usr/local/etc/alignak/certs
644 /usr/local/etc/alignak/certs/README
755 /usr/local/etc/alignak/daemons
Expand Down Expand Up @@ -98,14 +99,6 @@
644 /usr/local/etc/alignak/sample/sample/hosts/srv-oracle.cfg
644 /usr/local/etc/alignak/sample/sample/hosts/srv-mongodb.cfg
644 /usr/local/etc/alignak/sample/sample/hosts/br-erp.cfg
644 /usr/local/etc/default/alignak
755 /usr/local/etc/init.d/alignak
755 /usr/local/etc/init.d/alignak-arbiter
755 /usr/local/etc/init.d/alignak-broker
755 /usr/local/etc/init.d/alignak-poller
755 /usr/local/etc/init.d/alignak-reactionner
755 /usr/local/etc/init.d/alignak-receiver
755 /usr/local/etc/init.d/alignak-scheduler
755 /usr/local/lib/PYTHONVERSION/dist-packages/alignak
755 /usr/local/lib/PYTHONVERSION/dist-packages/alignak-ALIGNAKVERSION-SHORTPYVERSION.egg-info
644 /usr/local/lib/PYTHONVERSION/dist-packages/alignak/__init__.py
Expand Down
9 changes: 1 addition & 8 deletions test/virtualenv_install_files/install_virtualenv
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
755 VIRTUALENVPATH/bin/alignak-scheduler
755 VIRTUALPATH/etc/alignak
644 VIRTUALPATH/etc/alignak/alignak.cfg
644 VIRTUALPATH/etc/alignak/alignak.ini
755 VIRTUALPATH/etc/alignak/certs
644 VIRTUALPATH/etc/alignak/certs/README
755 VIRTUALPATH/etc/alignak/daemons
Expand Down Expand Up @@ -98,14 +99,6 @@
644 VIRTUALPATH/etc/alignak/sample/sample/hosts/srv-oracle.cfg
644 VIRTUALPATH/etc/alignak/sample/sample/hosts/srv-mongodb.cfg
644 VIRTUALPATH/etc/alignak/sample/sample/hosts/br-erp.cfg
644 VIRTUALPATH/etc/default/alignak
755 VIRTUALPATH/etc/init.d/alignak
755 VIRTUALPATH/etc/init.d/alignak-arbiter
755 VIRTUALPATH/etc/init.d/alignak-broker
755 VIRTUALPATH/etc/init.d/alignak-poller
755 VIRTUALPATH/etc/init.d/alignak-reactionner
755 VIRTUALPATH/etc/init.d/alignak-receiver
755 VIRTUALPATH/etc/init.d/alignak-scheduler
755 VIRTUALENVPATH/lib/PYTHONVERSION/site-packages/alignak
755 VIRTUALENVPATH/lib/PYTHONVERSION/site-packages/alignak-ALIGNAKVERSION-SHORTPYVERSION.egg-info
644 VIRTUALENVPATH/lib/PYTHONVERSION/site-packages/alignak/__init__.py
Expand Down
9 changes: 1 addition & 8 deletions test/virtualenv_install_files/install_virtualenv_travis
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
755 VIRTUALENVPATH/bin/alignak-scheduler
755 VIRTUALENVPATH/etc/alignak
644 VIRTUALENVPATH/etc/alignak/alignak.cfg
644 VIRTUALENVPATH/etc/alignak/alignak.ini
755 VIRTUALENVPATH/etc/alignak/certs
644 VIRTUALENVPATH/etc/alignak/certs/README
755 VIRTUALENVPATH/etc/alignak/daemons
Expand Down Expand Up @@ -98,14 +99,6 @@
644 VIRTUALENVPATH/etc/alignak/sample/sample/hosts/srv-oracle.cfg
644 VIRTUALENVPATH/etc/alignak/sample/sample/hosts/srv-mongodb.cfg
644 VIRTUALENVPATH/etc/alignak/sample/sample/hosts/br-erp.cfg
644 VIRTUALENVPATH/etc/default/alignak
755 VIRTUALENVPATH/etc/init.d/alignak
755 VIRTUALENVPATH/etc/init.d/alignak-arbiter
755 VIRTUALENVPATH/etc/init.d/alignak-broker
755 VIRTUALENVPATH/etc/init.d/alignak-poller
755 VIRTUALENVPATH/etc/init.d/alignak-reactionner
755 VIRTUALENVPATH/etc/init.d/alignak-receiver
755 VIRTUALENVPATH/etc/init.d/alignak-scheduler
755 VIRTUALENVPATH/lib/PYTHONVERSION/site-packages/alignak
755 VIRTUALENVPATH/lib/PYTHONVERSION/site-packages/alignak-ALIGNAKVERSION-SHORTPYVERSION.egg-info
644 VIRTUALENVPATH/lib/PYTHONVERSION/site-packages/alignak/__init__.py
Expand Down

0 comments on commit 1b10b79

Please sign in to comment.