# Rerun test are too flexible in their naming usage

**URL:** https://discourse.paraview.org/t/rerun-test-are-too-flexible-in-their-naming-usage/2445
**Category:** Dashboards
**Created:** [August 16, 2019, 1:55pm UTC](https://discourse.paraview.org/t/rerun-test-are-too-flexible-in-their-naming-usage/2445 "2019-08-16T13:55:21Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 16, 2019, 1:55pm UTC](https://discourse.paraview.org/t/rerun-test-are-too-flexible-in-their-naming-usage/2445/1 "2019-08-16T13:55:21Z")

</div>

If a test named “Foo” fail and a test named “FooBar” fails, it looks like both will be rerun because of the failure of foo.

Exactly like what happened if ones run ctest -R Foo, Foo and FooBar will be run.

This should be improved, but I guess it’s on cmake side.  
A way to improve that would be to never have a test name included within another test name.

An example of this actually happening :  
[https://buildbot.kitware.com/builders/paraview%40master-luigi-linux-shared-release%2Bgui%2Bmpi%2Bpython2/builds/1133/steps/build-n-test/logs/stdio](https://buildbot.kitware.com/builders/paraview%40master-luigi-linux-shared-release%2Bgui%2Bmpi%2Bpython2/builds/1133/steps/build-n-test/logs/stdio)

pvcrs.XdmfReadStructuredGrid and pvcrs.XdmfReadStructuredGridCollection

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [August 16, 2019, 2:45pm UTC](https://discourse.paraview.org/t/rerun-test-are-too-flexible-in-their-naming-usage/2445/2 "2019-08-16T14:45:14Z")

</div>

It should be possible to place the test name within `^$` to the end of the name to prevent running the other matching tests, .e.g

`ctest -R ^Foo$`

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 16, 2019, 4:34pm UTC](https://discourse.paraview.org/t/rerun-test-are-too-flexible-in-their-naming-usage/2445/3 "2019-08-16T16:34:46Z")

</div>

Indeed, it works fine.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [August 20, 2019, 1:37pm UTC](https://discourse.paraview.org/t/rerun-test-are-too-flexible-in-their-naming-usage/2445/4 "2019-08-20T13:37:40Z")

</div>

This change was pushed out to the buildbots.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 20, 2019, 1:39pm UTC](https://discourse.paraview.org/t/rerun-test-are-too-flexible-in-their-naming-usage/2445/5 "2019-08-20T13:39:50Z")

</div>

great, thanks @cory.quammen
