diff options
| author | Yoctopuce dev <dev@yoctopuce.com> | 2025-03-20 12:03:59 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-04-21 17:38:42 +1000 |
| commit | 52ca8268800416538368dea1976d0922ff07543f (patch) | |
| tree | 970514b68cb3879b48bc09abf7c04ada13233839 | |
| parent | 0d2c18c299936a34cdeb43e2ef9cbdaecb35c610 (diff) | |
unix/variants: Enable os.uname() in coverage build for tests.
In order to provide test coverage for the previous commit, `os.uname()`
support is added to the unix coverage build.
Signed-off-by: Yoctopuce dev <dev@yoctopuce.com>
| -rw-r--r-- | ports/unix/variants/coverage/mpconfigvariant.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ports/unix/variants/coverage/mpconfigvariant.h b/ports/unix/variants/coverage/mpconfigvariant.h index a72e533e7..04b5b8ae1 100644 --- a/ports/unix/variants/coverage/mpconfigvariant.h +++ b/ports/unix/variants/coverage/mpconfigvariant.h @@ -44,3 +44,10 @@ #undef MICROPY_VFS_ROM_IOCTL #define MICROPY_VFS_ROM_IOCTL (1) #define MICROPY_PY_CRYPTOLIB_CTR (1) + +// Enable os.uname for attrtuple coverage test +#define MICROPY_PY_OS_UNAME (1) +#define MICROPY_HW_BOARD_NAME "a machine" +#define MICROPY_HW_MCU_NAME MICROPY_PY_SYS_PLATFORM +// Keep the standard banner message +#define MICROPY_BANNER_MACHINE MICROPY_PY_SYS_PLATFORM " [" MICROPY_PLATFORM_COMPILER "] version" |
