Este conteúdo não está disponível no idioma selecionado.

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.

Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat