Skip to content

Commit ed3f765

Browse files
committed
Ya
1 parent b6b1990 commit ed3f765

File tree

2 files changed

+44
-4
lines changed

2 files changed

+44
-4
lines changed

cppython/plugins/vcpkg/plugin.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,16 @@ def _update_provider(cls, path: Path) -> None:
7777

7878
try:
7979
if system_name == 'nt':
80-
subprocess_call([str(WindowsPath('bootstrap-vcpkg.bat'))], logger=logger, cwd=path, shell=True)
80+
subprocess_call(
81+
[str(WindowsPath('bootstrap-vcpkg.bat')), '-disableMetrics'], logger=logger, cwd=path, shell=True
82+
)
8183
elif system_name == 'posix':
82-
subprocess_call(['./' + str(PosixPath('bootstrap-vcpkg.sh'))], logger=logger, cwd=path, shell=True)
84+
subprocess_call(
85+
['./' + str(PosixPath('bootstrap-vcpkg.sh')), '-disableMetrics'],
86+
logger=logger,
87+
cwd=path,
88+
shell=True,
89+
)
8390
except ProcessError:
8491
logger.error('Unable to bootstrap the vcpkg repository', exc_info=True)
8592
raise

docs/modules/tests/pages/fixtures.adoc

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,46 @@
22

33
Fixtures can be accessed by installing the optional `pytest` module, `cppython.pytest`.
44

5+
== Static Fixtures
6+
7+
=== `install_path`
8+
9+
=== `pep621_configuration`
10+
11+
=== `pep621_data`
12+
13+
=== `cppython_local_configuration`
14+
15+
=== `cppython_global_configuration`
16+
17+
=== `plugin_build_data`
18+
19+
=== `plugin_cppython_data`
20+
21+
=== `cppython_data`
22+
23+
=== `core_data`
24+
25+
=== `project_configuration`
26+
27+
=== `project_data`
28+
29+
=== `project`
30+
531
== Dynamic Fixtures
632

733
With the pytest feature of `pytest_generate_tests` we register multiple dynamic fixtures for collecting test data, both for plugins and for the test suite itself.
834

35+
=== `project_root`
36+
37+
=== `build_<directory>`
938

10-
=== `build_<directory>` Fixture
39+
A Path object representing the directory named `<directory>` in the build directory.
1140

1241
* Discovered from `tests/build/<directory>`
13-
* The contents of the directory are copied to a temporary directory
1442

43+
=== `mount_<directory>`
44+
45+
A Path object representing the directory named `<directory>` in a new temp_directory.
46+
47+
* Discovered from `tests/build/<directory>`

0 commit comments

Comments
 (0)