Diff
Modified: trunk/Tools/ChangeLog (270696 => 270697)
--- trunk/Tools/ChangeLog 2020-12-11 19:54:38 UTC (rev 270696)
+++ trunk/Tools/ChangeLog 2020-12-11 20:00:37 UTC (rev 270697)
@@ -1,3 +1,24 @@
+2020-12-11 Jonathan Bedard <[email protected]>
+
+ [webkitscmpy] Do not use actual URLs in testing
+ https://bugs.webkit.org/show_bug.cgi?id=219790
+ <rdar://problem/72228983>
+
+ Reviewed by Stephanie Lewis.
+
+ * Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: Bump version.
+ * Scripts/libraries/webkitscmpy/webkitscmpy/mocks/local/git.py:
+ (Git): Use example.org instead of webkit.org.
+ * Scripts/libraries/webkitscmpy/webkitscmpy/mocks/remote/svn.py:
+ (Svn.__init__): Use example.org instead of webkit.org.
+ * Scripts/libraries/webkitscmpy/webkitscmpy/test/find_unittest.py:
+ (TestFind.test_basic_svn_remote): Use example.org instead of webkit.org.
+ * Scripts/libraries/webkitscmpy/webkitscmpy/test/git_unittest.py:
+ (TestGit.test_info): Use example.org instead of webkit.org.
+ * Scripts/libraries/webkitscmpy/webkitscmpy/test/svn_unittest.py:
+ (TestRemoteSvn): Use example.org instead of webkit.org.
+ (TestRemoteSvn.test_detection):
+
2020-12-11 Don Olmstead <[email protected]>
[CMake] Determine correct visibility for linked frameworks
Modified: trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py (270696 => 270697)
--- trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py 2020-12-11 19:54:38 UTC (rev 270696)
+++ trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py 2020-12-11 20:00:37 UTC (rev 270697)
@@ -46,7 +46,7 @@
"Please install webkitcorepy with `pip install webkitcorepy --extra-index-url <package index URL>`"
)
-version = Version(0, 5, 1)
+version = Version(0, 5, 2)
AutoInstall.register(Package('fasteners', Version(0, 15, 0)))
AutoInstall.register(Package('monotonic', Version(1, 5)))
Modified: trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/local/git.py (270696 => 270697)
--- trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/local/git.py 2020-12-11 19:54:38 UTC (rev 270696)
+++ trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/local/git.py 2020-12-11 20:00:37 UTC (rev 270697)
@@ -38,7 +38,7 @@
):
self.path = path
self.default_branch = default_branch
- self.remote = remote or '[email protected]:/mock/{}'.format(os.path.basename(path))
+ self.remote = remote or '[email protected]:/mock/{}'.format(os.path.basename(path))
self.detached = detached or False
self.branches = branches or []
@@ -258,7 +258,7 @@
date=datetime.fromtimestamp(self.find(args[2]).timestamp).strftime('%a %b %d %H:%M:%S %Y'),
log='\n'.join([
(' ' + line) if line else '' for line in self.find(args[2]).message.splitlines()
- ] + ['git-svn-id: https://svn.{}repository/{}/trunk@{} 268f45cc-cd09-0410-ab3c-d52691b4dbfc'.format(
+ ] + ['git-svn-id: https://svn.{}/repository/{}/trunk@{} 268f45cc-cd09-0410-ab3c-d52691b4dbfc'.format(
self.remote.split('@')[-1].split(':')[0],
os.path.basename(path),
self.find(args[2]).revision,
Modified: trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/remote/svn.py (270696 => 270697)
--- trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/remote/svn.py 2020-12-11 19:54:38 UTC (rev 270696)
+++ trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/remote/svn.py 2020-12-11 20:00:37 UTC (rev 270697)
@@ -34,7 +34,7 @@
top = None
REVISION_REQUEST_RE = re.compile(r'svn/rvr/(?P<revision>\d+)(/(?P<category>\S+))?$')
- def __init__(self, remote='svn.webkit.org/repository/webkit'):
+ def __init__(self, remote='svn.example.org/repository/webkit'):
if not scmremote.Svn.is_webserver('https://{}'.format(remote)):
raise ValueError('"{}" is not a valid Svn remote'.format(remote))
Modified: trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/find_unittest.py (270696 => 270697)
--- trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/find_unittest.py 2020-12-11 19:54:38 UTC (rev 270696)
+++ trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/find_unittest.py 2020-12-11 20:00:37 UTC (rev 270697)
@@ -59,7 +59,7 @@
def test_basic_svn_remote(self):
with mocks.remote.Svn(), OutputCapture() as captured:
self.assertEqual(0, program.main(
- args=('-C', 'https://svn.webkit.org/repository/webkit', 'find', 'HEAD', '-q'),
+ args=('-C', 'https://svn.example.org/repository/webkit', 'find', 'HEAD', '-q'),
path=self.path,
))
self.assertEqual(captured.stdout.getvalue(), '4@trunk | r6 | 6th commit\n')
@@ -152,7 +152,7 @@
Revision: 4
Hash: 1abe25b443e9
4th commit
- svn-id: https://svn.webkit.orgrepository/repository/trunk@4 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+ svn-id: https://svn.example.org/repository/repository/trunk@4 268f45cc-cd09-0410-ab3c-d52691b4dbfc
'''.format(datetime.fromtimestamp(1601663000).strftime('%a %b %d %H:%M:%S %Y')),
)
@@ -174,7 +174,7 @@
emails=['[email protected]'],
), timestamp=1601663000,
branch='main',
- message='4th commit\nsvn-id: https://svn.webkit.orgrepository/repository/trunk@4 268f45cc-cd09-0410-ab3c-d52691b4dbfc',
+ message='4th commit\nsvn-id: https://svn.example.org/repository/repository/trunk@4 268f45cc-cd09-0410-ab3c-d52691b4dbfc',
))
def test_tag_svn(self):
Modified: trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/git_unittest.py (270696 => 270697)
--- trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/git_unittest.py 2020-12-11 19:54:38 UTC (rev 270696)
+++ trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/git_unittest.py 2020-12-11 20:00:37 UTC (rev 270697)
@@ -91,8 +91,8 @@
self.assertDictEqual(
{
'Path': '.',
- 'Repository Root': '[email protected]:/mock/repository',
- 'URL': '[email protected]:/mock/repository/main',
+ 'Repository Root': '[email protected]:/mock/repository',
+ 'URL': '[email protected]:/mock/repository/main',
'Revision': '6',
'Node Kind': 'directory',
'Schedule': 'normal',
Modified: trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/svn_unittest.py (270696 => 270697)
--- trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/svn_unittest.py 2020-12-11 19:54:38 UTC (rev 270696)
+++ trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/svn_unittest.py 2020-12-11 20:00:37 UTC (rev 270697)
@@ -224,12 +224,12 @@
class TestRemoteSvn(unittest.TestCase):
- remote = 'https://svn.webkit.org/repository/webkit'
+ remote = 'https://svn.example.org/repository/webkit'
def test_detection(self):
- self.assertEqual(remote.Svn.is_webserver('https://svn.webkit.org/repository/webkit'), True)
- self.assertEqual(remote.Svn.is_webserver('http://svn.webkit.org/repository/webkit'), True)
- self.assertEqual(remote.Svn.is_webserver('https://github.com/WebKit/webkit'), False)
+ self.assertEqual(remote.Svn.is_webserver('https://svn.example.org/repository/webkit'), True)
+ self.assertEqual(remote.Svn.is_webserver('http://svn.example.org/repository/webkit'), True)
+ self.assertEqual(remote.Svn.is_webserver('https://github.example.org/WebKit/webkit'), False)
def test_branches(self):
with mocks.remote.Svn():