[Ovirt-devel] [PATCH] added rake test to appliance autobuild

Mohammed Morsi mmorsi at redhat.com
Tue Oct 14 20:58:48 UTC 2008


also removed unecessary chaning of the rails env
---
 autobuild.sh |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/autobuild.sh b/autobuild.sh
index 98a3b46..07ea1db 100755
--- a/autobuild.sh
+++ b/autobuild.sh
@@ -58,13 +58,6 @@ ln -s /etc/init.d/sshd /etc/rc3.d/S99sshd
 %end
 KS
 
-# set appliance to run in test mode
-cat >> ovirt-appliance.ks << \KS
-%post
-sed -i "s/#RAILS_ENV=production/RAILS_ENV=test/g" /etc/sysconfig/ovirt-rails
-%end
-KS
-
 ./autogen.sh --prefix=$AUTOBUILD_INSTALL_ROOT
 make dist
 
@@ -115,4 +108,4 @@ for i in $(seq 1 10); do
   sleep 10
 done
 
-# $ssh_cmd cd /usr/share/ovirt-server && rake test"
+$ssh_cmd "cd /usr/share/ovirt-server && export RAILS_ENV=test && rake test"
-- 
1.5.4.1




More information about the ovirt-devel mailing list