[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] patch tests to fix test traceback



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/home/arma/work/minion/src/minion/lib/mixminion

Modified Files:
	test.py 
Log Message:
patch tests to fix test traceback

(nick: check if i did what you wanted to test)


Index: test.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/test.py,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -d -r1.125 -r1.126
--- test.py	26 Jun 2003 17:43:27 -0000	1.125
+++ test.py	28 Jun 2003 03:34:00 -0000	1.126
@@ -2935,9 +2935,9 @@
         # File not owned by us. (???)
         if os.getuid() == 0:
             os.chmod(subdir_x, 0600)
-            os.chown(subdir_x, 1)
+            os.chown(subdir_x, 1, 1)
             self.failUnlessRaises(MixFatalError, checkPrivateFile, subdir_x)
-            os.chown(subdir_x, 0)
+            os.chown(subdir_x, 0, os.getgid())
         else:
             if os.path.exists("/etc/shadow"):
                 self.failUnlessRaises(MixFatalError, checkPrivateFile,