Skip to content

Commit c4391f0

Browse files
committed
Add a new test on 'perf probe' bug
Signed-off-by: Anthoine Bourgeois <[email protected]>
1 parent 21fd773 commit c4391f0

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

tests/packages/linux-image/__init__.py

Whitespace-only changes.
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import logging
2+
import pytest
3+
import urllib.request
4+
5+
# Explicitly import package-scoped fixtures (see explanation in pkgfixtures.py)
6+
from pkgfixtures import host_with_saved_yum_state
7+
8+
@pytest.fixture(scope="package")
9+
def host_with_perf(host_with_saved_yum_state):
10+
host = host_with_saved_yum_state
11+
12+
logging.info(f"Getting perf package")
13+
14+
host.yum_install(['perf'])
15+
yield host
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Requirements:
2+
# From --hosts parameter:
3+
# - host(A1): any xcp-ng host
4+
5+
def test_linux_image_perf_probe(host_with_perf):
6+
host_with_perf.ssh(['perf', 'probe', '--add', 'xenbus_backend_ioctl'])

0 commit comments

Comments
 (0)