mirror of
https://git.freebsd.org/ports.git
synced 2025-07-05 11:29:15 -04:00
- Update to 3.0 (and bump PORTEPOCH) - Update pkg-plist - Replace NOPORTDOCS with DOCS (pet portlint) - Remove unecessary test_childutils patch (upstreamed) - Disable two failing tests and report upstream [1] Changes: https://github.com/Supervisor/supervisor/blob/3.0/CHANGES.txt [1] https://github.com/Supervisor/supervisor/issues/284 [1] https://github.com/Supervisor/supervisor/issues/285 PR: ports/181138 Approved by: Ildar Hizbulin <hizel@vyborg.ru> (maintainer)
71 lines
2.7 KiB
Python
71 lines
2.7 KiB
Python
--- supervisor/tests/test_options.py.old 2013-08-23 15:04:37.000000000 +0400
|
|
+++ supervisor/tests/test_options.py 2013-08-23 15:07:45.000000000 +0400
|
|
@@ -56,12 +56,12 @@
|
|
short='p:', long='other=', handler=integer)
|
|
return options
|
|
|
|
- def test_searchpaths(self):
|
|
- options = self._makeOptions()
|
|
- self.assertEquals(len(options.searchpaths), 5)
|
|
- self.assertTrue('supervisord.conf' in options.searchpaths)
|
|
- self.assertTrue('etc/supervisord.conf' in options.searchpaths)
|
|
- self.assertTrue('/etc/supervisord.conf' in options.searchpaths)
|
|
+# def test_searchpaths(self):
|
|
+# options = self._makeOptions()
|
|
+# self.assertEquals(len(options.searchpaths), 5)
|
|
+# self.assertTrue('supervisord.conf' in options.searchpaths)
|
|
+# self.assertTrue('etc/supervisord.conf' in options.searchpaths)
|
|
+# self.assertTrue('/etc/supervisord.conf' in options.searchpaths)
|
|
|
|
def test_options_and_args_order(self):
|
|
# Only config file exists
|
|
@@ -209,15 +209,15 @@
|
|
else:
|
|
self.fail("expected exception")
|
|
|
|
- tempf = tempfile.NamedTemporaryFile()
|
|
- os.chmod(tempf.name, 0) # Removing read perms
|
|
- try:
|
|
- instance.read_config(tempf.name)
|
|
- except ValueError, e:
|
|
- self.assertTrue("could not read config file" in str(e))
|
|
- else:
|
|
- self.fail("expected exception")
|
|
- tempf.close()
|
|
+# tempf = tempfile.NamedTemporaryFile()
|
|
+# os.chmod(tempf.name, 0) # Removing read perms
|
|
+# try:
|
|
+# instance.read_config(tempf.name)
|
|
+# except ValueError, e:
|
|
+# self.assertTrue("could not read config file" in str(e))
|
|
+# else:
|
|
+# self.fail("expected exception")
|
|
+# tempf.close()
|
|
|
|
def test_options_unixsocket_cli(self):
|
|
from StringIO import StringIO
|
|
@@ -616,15 +616,15 @@
|
|
else:
|
|
self.fail("expected exception")
|
|
|
|
- tempf = tempfile.NamedTemporaryFile()
|
|
- os.chmod(tempf.name, 0) # Removing read perms
|
|
- try:
|
|
- instance.read_config(tempf.name)
|
|
- except ValueError, e:
|
|
- self.assertTrue("could not read config file" in str(e))
|
|
- else:
|
|
- self.fail("expected exception")
|
|
- tempf.close()
|
|
+# tempf = tempfile.NamedTemporaryFile()
|
|
+# os.chmod(tempf.name, 0) # Removing read perms
|
|
+# try:
|
|
+# instance.read_config(tempf.name)
|
|
+# except ValueError, e:
|
|
+# self.assertTrue("could not read config file" in str(e))
|
|
+# else:
|
|
+# self.fail("expected exception")
|
|
+# tempf.close()
|
|
|
|
def test_readFile_failed(self):
|
|
from supervisor.options import readFile
|