File: unittests

package info (click to toggle)
python-openstacksdk 4.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,712 kB
  • sloc: python: 127,028; sh: 153; makefile: 23
file content (21 lines) | stat: -rwxr-xr-x 1,838 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e
set -x
export OSLO_PACKAGE_VERSION=$(dpkg-parsechangelog -SVersion | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//' -e 's/~git.*//' -e 's/~/.0/' -e 's/+dfsg1//' -e 's/+ds1//' | head -n 1)

# These are to be skipped on riscv64, because the platform is too slow and tests are timing out.
# ''

if [ -n "${AUTOPKGTEST_TEST_ARCH}" ] ; then
	TARCH=${AUTOPKGTEST_TEST_ARCH}
else
	TARCH=$(dpkg --print-architecture)
fi

if [ "${TARCH}" = "riscv64" ] ; then
	SKIP_T='|cloud\.test_volume_backups\.TestVolumeBackups\..*|cloud\.test_role_assignment\.TestInheritedRoleAssignment\..*|config\.test_config\.TestConfigArgparse\..*|config\.test_config\.TestConfig\..*|image\.v2\.test_proxy\.TestTask\..*|message\.v2\.test_proxy\.TestMessageSubscription\..*|network\.v2\.test_proxy\.TestNetworkIpAvailability\..*|object_store\.v1\.test_proxy\.TestTempURLUnicodePathAndKey\..*|test_resource\.TestResource\..*|test_resource\.TestWaitForStatus\..*'
fi

pkgos-dh_auto_install --no-py2 --in-tmp
OS_LOG_CAPTURE=true pkgos-dh_auto_test --no-py2 'openstack\.tests\.unit\.(?!(.*baremetal\.v1\.test_proxy\.TestWaitForNodesProvisionState\.test_timeout_and_failures_not_fail.*|.*config\.test_loader\.TestLoader\.test__load_yaml_json_file_without_perm.*|.*cloud.test_security_groups\.TestSecurityGroups\.test_update_security_group_bad_kwarg.*|.*cloud\.test_port\.TestPort\.test_create_port_parameters.*|.*test_stats\.TestStats\.test_servers_error.*|.*test_stats\.TestStats\.test_servers_no_detail.*|test_stats\.TestStats\.test_servers|network\.v2\.test_proxy\.TestNetworkNetworkSegment\.test_network_segment_range_delete|config\.test_config\.TestBackwardsCompatibility\.test_project_password|network\.v2\.test_bgp_speaker\.TestBgpSpeaker\.test_add_bgp_speaker_to_dragent|compute\.v2\.test_proxy\.TestCompute\.test_server_group_delete_ignore'${SKIP_T}'))'