forked from espressif/esp-idf
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 <frantisek.hrbata@espressif.com>
This commit is contained in:
@@ -6,7 +6,6 @@ steps:
|
|||||||
cmds:
|
cmds:
|
||||||
- exec:
|
- exec:
|
||||||
cmd: 'idf.py --version'
|
cmd: 'idf.py --version'
|
||||||
timeout: 10
|
|
||||||
output: esp_idf.ver
|
output: esp_idf.ver
|
||||||
|
|
||||||
- name: 'ESP-IDF Git Version'
|
- name: 'ESP-IDF Git Version'
|
||||||
@@ -14,16 +13,3 @@ steps:
|
|||||||
- exec:
|
- exec:
|
||||||
cmd: 'git -C ${IDF_PATH} describe'
|
cmd: 'git -C ${IDF_PATH} describe'
|
||||||
output: esp_idf_git.ver
|
output: esp_idf_git.ver
|
||||||
|
|
||||||
- name: 'Platform Information'
|
|
||||||
cmds:
|
|
||||||
- exec:
|
|
||||||
cmd:
|
|
||||||
- python
|
|
||||||
- -c
|
|
||||||
- |
|
|
||||||
import platform
|
|
||||||
print(f'system: {platform.system()}')
|
|
||||||
print(f'release: {platform.release()}')
|
|
||||||
print(f'machine: {platform.machine()}')
|
|
||||||
output: platform.inf
|
|
||||||
|
49
tools/idf_py_actions/diag/recipes/system.yml
Normal file
49
tools/idf_py_actions/diag/recipes/system.yml
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
description: System information
|
||||||
|
tags: [system, base, project]
|
||||||
|
steps:
|
||||||
|
- name: 'Platform Information'
|
||||||
|
cmds:
|
||||||
|
- exec:
|
||||||
|
cmd:
|
||||||
|
- python
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
import platform
|
||||||
|
print(f'system: {platform.system()}')
|
||||||
|
print(f'release: {platform.release()}')
|
||||||
|
print(f'machine: {platform.machine()}')
|
||||||
|
output: platform.inf
|
||||||
|
|
||||||
|
- name: 'Linux System Information'
|
||||||
|
system: Linux
|
||||||
|
output: linux
|
||||||
|
cmds:
|
||||||
|
- file:
|
||||||
|
path: '/proc/cpuinfo'
|
||||||
|
- file:
|
||||||
|
path: '/etc/os-release'
|
||||||
|
- exec:
|
||||||
|
cmd: 'uname -a'
|
||||||
|
output: uname
|
||||||
|
|
||||||
|
- name: 'Darwin Information'
|
||||||
|
system: Darwin
|
||||||
|
output: darwin
|
||||||
|
cmds:
|
||||||
|
- exec:
|
||||||
|
cmd: 'sysctl machdep.cpu'
|
||||||
|
output: machdep.cpu
|
||||||
|
- exec:
|
||||||
|
cmd: 'sw_vers'
|
||||||
|
output: sw_vers
|
||||||
|
- exec:
|
||||||
|
cmd: 'uname -a'
|
||||||
|
output: uname
|
||||||
|
|
||||||
|
- name: 'Windows Information'
|
||||||
|
system: Windows
|
||||||
|
output: windows
|
||||||
|
cmds:
|
||||||
|
- exec:
|
||||||
|
cmd: 'systeminfo'
|
||||||
|
output: systeminfo
|
Reference in New Issue
Block a user