Commit Graph

8 Commits

Author SHA1 Message Date
Al Bailey 99d897bdd4 Update tox.ini to work with tox 4
This change will allow this repo to pass zuul now
that this has merged:
https://review.opendev.org/c/zuul/zuul-jobs/+/866943

Tox 4 deprecated whitelist_externals.
Replace whitelist_externals with allowlist_externals

Partial-Bug: #2000399

Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I53cf7083fa3b80c96d56619b4e9bba81ea26bc87
2022-12-26 21:12:47 +00:00
Davlet Panech 0f3670fe64 debian: port helm chart script to debian
* build-helm-charts.sh:
  - auto-detect $OS
  - process DEB files on Debian

* deb-utils: new file with utilities for working with binary DEB files

* tox.ini: run unit tests for deb-utils

TESTS
========================================

Run script on CentOS and make sure the generated tarball's contents are
the same as before the patch.

Run script on Debian and make sure the generated tarball's contents look
reasonable.

Story: 2009897
Task: 45293

Depends-On: https://review.opendev.org/c/starlingx/openstack-armada-app/+/840561
Change-Id: Icbcb0bb7b47f623fac8d0851687423396edb5747
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
2022-05-10 17:13:13 -04:00
Don Penney 319690c084 Update initrd with IPv6 improvements
Patching content from upstream dracut for IPv6 improvements:
8061a43284
031e2f7bb8

These changes are present in the Centos8 initrd, but not Centos7.

The changes include:
- Addressing a race condition in the IPv6 DAD handling:
  https://bugzilla.redhat.com/show_bug.cgi?id=1765013
- Add a check for router advertise route (proto ra) prior to
  continuing with dracut init

Change-Id: I9021b3c3af639caed81d085eb889ed2d1bf98380
Story: 2009009
Task: 42709
Signed-off-by: Don Penney <don.penney@windriver.com>
2021-06-29 11:20:52 -04:00
Don Penney d184c69b7c Update tox.ini bashate to test all bash scripts
Currently, the tox.ini file is only running bashate against files that
end in a .sh extension. However, many of the build tools do not have
an extension, and therefore don't have bashate executed against them.
This commit enhances the tox command to search for shell scripts
regardless of file extension.

The bashate ignore list has been updated to ignore all existing
warnings. Future updates can perform cleanup to address the
outstanding issues and remove items from the ignore list one by one.

The original check of .sh is maintained with a smaller ignore list, to
ensure new issues are not introduced.

Change-Id: I07e8ac83c6ed3d81e7bfad19da1eee1747d60802
Signed-off-by: Don Penney <don.penney@windriver.com>
2020-02-12 19:20:43 +00:00
98k af2cd916b8 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I363f6753b6319ee480cc02765483fa1a7035739f
2018-10-05 10:58:31 +00:00
Sun Austin 7c748292c4 Fix linters issues and enable tox/zuul linters job as gate
Fix below issues:
    E003 Indent not multiple of 4
    E011 Then keyword is not on same line as if or elif keyword
    E020: Function declaration not in format "^function name {$":
          'function check_all_explicit_deps_installed'

add ignore in tox env
    E006 Line too long
    E010: Do not on same line as command
Change-Id: I13fb83452324c0db74c485f304827a6c9aacf9ae
Story: 2003370
Task: 24431
Signed-off-by: Sun Austin <austin.sun@intel.com>
2018-09-05 22:42:11 +08:00
Dean Troyer 415a6a041e Update tests to new default
Change-Id: I3b94013d779bf1b934775b4ee1cec11a94635577
2018-06-08 20:09:47 -05:00
Dean Troyer 5c1927274f Add basic test framework
test-requirements.txt - install bashate
tox.ini - bashate and a do-nothing target
.zuul.yaml - non-voting bashate job

Change-Id: I35ff6063568518a3994441cc3eadbd4896f25d64
2018-06-08 12:58:39 -05:00