mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 09:09:10 -04:00
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:
parent
f7b754acfa
commit
350dbaf73c
@ -6,7 +6,6 @@ steps:
|
||||
cmds:
|
||||
- exec:
|
||||
cmd: 'idf.py --version'
|
||||
timeout: 10
|
||||
output: esp_idf.ver
|
||||
|
||||
- name: 'ESP-IDF Git Version'
|
||||
@ -14,16 +13,3 @@ steps:
|
||||
- exec:
|
||||
cmd: 'git -C ${IDF_PATH} describe'
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user