public
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/FooBarWidget/passenger.git
Click here to lend your support to: passenger and make a donation at www.pledgie.com !
Make tests more robust against permission problems.
Hongli Lai (Phusion) (author)
Sat Mar 01 05:33:31 -0800 2008
commit  35fb9dd734af1df7ef907e992db4af9106728b6f
tree    d7c5d26ee60ea8602f4f5c580cbd81d564481ff3
parent  7d789e4c70bea393becbcb5cc872be7adc420a55
...
3
4
5
 
 
 
6
7
8
9
 
 
10
11
12
...
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
0
@@ -3,10 +3,15 @@
0
 
0
 # These are the user names of two normal, non-administrator users.
0
 # Preferably, these are user accounts that are normally not used.
0
+#
0
+# NOTE: these users MUST be able to access this 'test' directory,
0
+# otherwise the tests will fail.
0
 normal_user_1: games
0
 normal_user_2: daemon
0
 
0
 # The username of a user that has less privileges than a normal user.
0
+# NOTE: this user MUST be able to access this 'test' directory, otherwise
0
+# the tests will fail.
0
 lowest_user: nobody
0
 
0
 # A nonexistant username.
...
220
221
222
 
 
223
224
225
...
220
221
222
223
224
225
226
227
0
@@ -220,6 +220,8 @@ describe "mod_passenger running in Apache 2" do
0
         sleep(0.25)
0
       end
0
     end
0
+ File.chmod(0666, *Dir['stub/apache2/*.{log,lock,pid}']) rescue nil
0
+ File.chmod(0777, *Dir['stub/mycook/{public,log}']) rescue nil
0
   end
0
   
0
   def stop_apache

Comments

    No one has commented yet.