Skip to content

Commit 350dbaf

Browse files
committed
feat(tools): add system.yml recipe to diag
This should enable the collection of more detailed information about the operating system and basic CPU details. Signed-off-by: Frantisek Hrbata <[email protected]>
1 parent f7b754a commit 350dbaf

File tree

2 files changed

+49
-14
lines changed

2 files changed

+49
-14
lines changed

tools/idf_py_actions/diag/recipes/idf.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,10 @@ steps:
66
cmds:
77
- exec:
88
cmd: 'idf.py --version'
9-
timeout: 10
109
output: esp_idf.ver
1110

1211
- name: 'ESP-IDF Git Version'
1312
cmds:
1413
- exec:
1514
cmd: 'git -C ${IDF_PATH} describe'
1615
output: esp_idf_git.ver
17-
18-
- name: 'Platform Information'
19-
cmds:
20-
- exec:
21-
cmd:
22-
- python
23-
- -c
24-
- |
25-
import platform
26-
print(f'system: {platform.system()}')
27-
print(f'release: {platform.release()}')
28-
print(f'machine: {platform.machine()}')
29-
output: platform.inf
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
description: System information
2+
tags: [system, base, project]
3+
steps:
4+
- name: 'Platform Information'
5+
cmds:
6+
- exec:
7+
cmd:
8+
- python
9+
- -c
10+
- |
11+
import platform
12+
print(f'system: {platform.system()}')
13+
print(f'release: {platform.release()}')
14+
print(f'machine: {platform.machine()}')
15+
output: platform.inf
16+
17+
- name: 'Linux System Information'
18+
system: Linux
19+
output: linux
20+
cmds:
21+
- file:
22+
path: '/proc/cpuinfo'
23+
- file:
24+
path: '/etc/os-release'
25+
- exec:
26+
cmd: 'uname -a'
27+
output: uname
28+
29+
- name: 'Darwin Information'
30+
system: Darwin
31+
output: darwin
32+
cmds:
33+
- exec:
34+
cmd: 'sysctl machdep.cpu'
35+
output: machdep.cpu
36+
- exec:
37+
cmd: 'sw_vers'
38+
output: sw_vers
39+
- exec:
40+
cmd: 'uname -a'
41+
output: uname
42+
43+
- name: 'Windows Information'
44+
system: Windows
45+
output: windows
46+
cmds:
47+
- exec:
48+
cmd: 'systeminfo'
49+
output: systeminfo

0 commit comments

Comments
 (0)