---
# System prepended metadata

title: mkdir /tmp/tempe

---

Run tempest locally

Create a tempest directory where you will save your logs

```
mkdir -p /tmp/tempest/logs
```

Create the exclude.txt and include.txt files
```
touch /tmp/tempest/logs/exclude.txt
touch /tmp/tempest/logs/include.txt
```

Add in the include.txt the tempest tests you want to run, for example tempest.api.identity.v3.* (this will execute all tempest.api.identity.v3.something) or an specific test like tempest.api.identity.v3.test_catalog.IdentityCatalogTest.test_catalog_standardization

Copy your clouds.yaml to /tmp/tempest/logs:

```
cp ~/.config/openstack/clouds.yaml /tmp/tempest/logs
```

Set directory permissions:

```
podman unshare chown 42480:42480 -R /tmp/tempest/logs
``` 

Run tempest:

```
podman run -e CONCURRENCY=4 -v /tmp/tempest/logs/:/var/lib/tempest/external_files:Z quay.io/podified-antelope-centos9/openstack-tempest:current-podified
```

Profit! Logs will be on /tmp/tempest/logs (subunit, html files, tempest logs, etc)