此内容没有您所选择的语言版本。

Chapter 5. Using ostestr to Run Tempest


Ostestr is an OpenStack wrapper for the testr test runner.

5.1. Running Smoke Tests

Smoke testing is a type of preliminary testing which only covers the most important functionality. While they are not comprehensive, running smoke tests can save time if they do identify a problem.

To run the smoke tests:

# ostestr '.*smoke'
Copy to Clipboard Toggle word wrap

5.2. Passing Tests Using Whitelist Files

A whitelist file is a file which contains regular expressions to select tests to include. Regular expressions are separated by a newline.

To use a whitelist file:

# ostestr --whitelist-file <whitelist_file>
Copy to Clipboard Toggle word wrap

Alternatively:

# ostestr -w <whitelist_file>
Copy to Clipboard Toggle word wrap

5.3. Skipping Tests Using Blacklist Files

A blacklist file is a file which contains regular expressions to select tests to exclude. Regular expressions are separated by a newline.

To use a blacklist file:

# ostestr --blacklist-file <blacklist_file>
Copy to Clipboard Toggle word wrap

Alternatively:

# ostestr -b <blacklist_file>
Copy to Clipboard Toggle word wrap

5.4. Running Tests in Parallel Concurrently, or Serially

Run the tests serially:

# ostestr --serial
Copy to Clipboard Toggle word wrap

Run the tests in parallel (this is the default):

# ostestr --parallel
Copy to Clipboard Toggle word wrap

Specify the number of workers to use when running tests in parallel:

# ostestr --concurrency <workers>
Copy to Clipboard Toggle word wrap

Alternatively:

# ostestr -c <workers>
Copy to Clipboard Toggle word wrap

By default, this is set to the number of CPUs.

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat