sonic-buildimage/.gitignore
Joe LeVeque 58db2d53e3
[sonic-py-common] Add unit test framework (#5238)
**- Why I did it**

To install the framework for adding unit tests to the sonic-py-common package and report coverage.

** How I did it **

- Incorporate pytest and pytest-cov into sonic-py-common package build
- Updgrade version of 'mock' installed to version 3.0.5, the last version which supports Python 2. This fixes a bug where the file object returned from `mock_open()` was not iterable (see https://bugs.python.org/issue32933)
- Add support for Python 3 setuptools and pytest in sonic-slave-buster environment
- Add tests for `device_info.get_machine_info()` and `device_info.get_platform()` functions
- Also add a .gitignore in the root of the sonic-py-common directory, move all related ignores from main .gitignore file, and add ignores for files and dirs generated by pytest-cov
2020-08-24 10:35:22 -07:00

63 lines
1.3 KiB
Plaintext

# OS-generated files
.DS_Store
# Build system related
.arch
.platform
.screen
# Build artifacts
fsroot/
fs.*
target/
*.deb
*.changes
*.buildinfo
*.tar
*.xz
*.gz
*-dbg
*dbg.j2
*.img
# Autogenerated Dockerfiles
sonic-slave*/Dockerfile
dockers/*/Dockerfile
platform/*/docker-*/Dockerfile
# Installer-related files and directories
installer/x86_64/platforms/
# Misc. files
asic_config_checksum
files/Aboot/boot0
files/initramfs-tools/arista-convertfs
files/initramfs-tools/union-mount
# Debian byproduct files
src/**/debian/stamp-*/
src/**/debian/*.log
src/**/debian/*.substvars
src/**/debian/.debhelper/
src/**/debian/tmp/
src/**/debian/autoreconf.*
src/**/debian/build/
src/**/debian/files
src/**/debian/stamp-autotools-files
# .o files
src/**/*.o
# platform
platform/**/*.egg-info
platform/**/*-none-any.whl
platform/**/.pybuild
platform/**/debian/*
platform/**/build
platform/broadcom/sonic-platform-modules-dell/s5232f/sonic_platform/ipmihelper.py
platform/broadcom/sonic-platform-modules-dell/s6100/modules/dell_ich.c
platform/broadcom/sonic-platform-modules-dell/s6100/modules/dell_s6100_lpc.c
platform/broadcom/sonic-platform-modules-dell/z9100/modules/dell_ich.c
platform/broadcom/sonic-platform-modules-dell/z9100/modules/dell_mailbox.c
platform/broadcom/sonic-platform-modules-dell/z9264f/sonic_platform/ipmihelper.py