ec07b343d2
We haven't been testing the distro for a while in CI, e.g. in Tempest, the jobs on opensuse15 haven't been executed for a year now. Therefore the patch removes opensuse support from devstack. Closes-Bug: #2002900 Change-Id: I0f5e4c644e2d14d1b8bb5bc0096d1469febe5fcc
34 lines
693 B
Bash
Executable File
34 lines
693 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# basic test to ensure that package-install files remain sorted
|
|
# alphabetically.
|
|
|
|
TOP=$(cd $(dirname "$0")/.. && pwd)
|
|
|
|
source $TOP/tests/unittest.sh
|
|
|
|
export LC_ALL=en_US.UTF-8
|
|
PKG_FILES=$(find $TOP/files/debs $TOP/files/rpms -type f)
|
|
|
|
TMPDIR=$(mktemp -d)
|
|
|
|
SORTED=${TMPDIR}/sorted
|
|
UNSORTED=${TMPDIR}/unsorted
|
|
|
|
for p in $PKG_FILES; do
|
|
grep -v '^#' $p > ${UNSORTED}
|
|
sort ${UNSORTED} > ${SORTED}
|
|
|
|
if [ -n "$(diff -c ${UNSORTED} ${SORTED})" ]; then
|
|
failed "$p is unsorted"
|
|
# output this, it's helpful to see what exactly is unsorted
|
|
diff -c ${UNSORTED} ${SORTED}
|
|
else
|
|
passed "$p is sorted"
|
|
fi
|
|
done
|
|
|
|
rm -rf ${TMPDIR}
|
|
|
|
report_results
|