poky/bitbake/lib/bb/tests
Martin Jansa 5276b7f548 bitbake: tests: fetch.py: use real subversion repository
* github no longer provides support for subversion clients:
  https://docs.github.com/en/enterprise-server@3.11/get-started/working-with-subversion-on-github/support-for-subversion-clients
  it was shut down on 2024-01-08:
  https://github.blog/2023-01-20-sunsetting-subversion-support/

  and this test was now failing with:

======================================================================
ERROR: test_external_svn (bb.tests.fetch.SVNTest.test_external_svn)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/OE/layers/bitbake/lib/bb/tests/fetch.py", line 1287, in test_external_svn
    fetcher.download()
  File "/OE/layers/bitbake/lib/bb/fetch2/__init__.py", line 1896, in download
    raise FetchError("Unable to fetch URL from any source.", u)
bb.fetch2.FetchError: Fetcher failure for URL: 'svn:///tmp/bitbake-fetch-zdvedqt_/svnfetch_localrepo_wup8mgn6/project;module=trunk;protocol=file;externals=allowed;rev=2'. Unable to fetch URL from any source.

Stdout:
Fetch svn:///tmp/bitbake-fetch-zdvedqt_/svnfetch_localrepo_wup8mgn6/project;module=trunk;protocol=file;externals=allowed;rev=2
Failed to fetch URL svn:///tmp/bitbake-fetch-zdvedqt_/svnfetch_localrepo_wup8mgn6/project;module=trunk;protocol=file;externals=allowed;rev=2, attempting MIRRORS if available
Fetcher failure: Fetch command export PSEUDO_DISABLED=1; /usr/bin/env svn --non-interactive --trust-server-cert co --no-auth-cache -r 2 file:///tmp/bitbake-fetch-zdvedqt_/svnfetch_localrepo_wup8mgn6/project/trunk@2 trunk failed with exit code 1, output:
A    trunk/README.md
 U   trunk
Checked out revision 2.

svn: warning: W205011: Error handling externals definition for 'trunk/bitbake':
svn: warning: W170013: Unable to connect to a repository at URL 'https://github.com/PhilipHazel/pcre2.git'
svn: E205011: Failure occurred processing one or more externals definitions

  in the rare cases where subversion was still installed on the host
  running bitbake-selftest :).

  to avoid this use still alive repository from https://svn.apache.org/
  and pick something rather small and only the trunk subdirectory which
  is fast to fetch:
  svn co https://svn.apache.org/repos/asf/serf/trunk
  takes just 2 sec here

  adjust expected dir/file to use "protocols/fcgi_buckets.h" instead of
  "trunk/README"

(Bitbake rev: a735898abcf056f897c9350bb128a5637e6b4617)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:59:32 +00:00
..
fetch-testdata bitbake: fetch2/wget.py: correctly match versioned directories 2022-12-11 16:33:19 +00:00
runqueue-tests bitbake: bitbake: Rename basehas and taskhash filtering variables 2022-02-21 23:37:26 +00:00
support bitbake: tests/fetch: Allow wget upgrade tests to run against a local server 2020-01-22 15:56:39 +00:00
__init__.py
codeparser.py bitbake: bb/toaster: Fix assertEquals deprecation warnings 2023-12-06 22:28:03 +00:00
color.py bitbake: event: builtins fix for 'd' deletion 2022-12-29 00:07:06 +00:00
compression.py bitbake: bitbake: Add copyright headers where missing 2022-08-12 11:49:29 +01:00
cooker.py bitbake: bitbake: Add copyright headers where missing 2022-08-12 11:49:29 +01:00
cow.py bitbake: COW: migrate test suite into tests/cow 2020-09-02 16:01:05 +01:00
data.py bitbake: bitbake: tests: Fix duplicate test_underscore_override test 2023-12-02 18:04:23 +00:00
event.py bitbake: bitbake: tests/event: Add test_lineno_in_eventhandler 2024-01-10 13:55:33 +00:00
fetch.py bitbake: tests: fetch.py: use real subversion repository 2024-02-08 10:59:32 +00:00
parse.py bitbake: ast: Fix EXPORT_FUNCTIONS bug 2024-01-10 13:55:33 +00:00
persist_data.py bitbake: bitbake: Strip old editor directives from file headers 2019-05-04 10:44:10 +01:00
runqueue.py bitbake: siggen: Drop non-multiconfig aware siggen support 2022-12-11 23:21:27 +00:00
siggen.py bitbake: siggen: Improve runtaskdeps data to fix sstate debugging 2023-08-09 13:23:33 +01:00
utils.py bitbake: tests/utils: mark a regex as a raw string 2021-10-08 16:45:05 +01:00