Skip to content

Add a [-] option to constants from arrays in the configuration#171

Merged
michael-schwarz merged 2 commits intomasterfrom
config_remove_from_array
Mar 18, 2021
Merged

Add a [-] option to constants from arrays in the configuration#171
michael-schwarz merged 2 commits intomasterfrom
config_remove_from_array

Conversation

@ivanazuzic
Copy link
Copy Markdown
Contributor

Until now, we had a [+] option to add a constant to the arrays in the configuration. For example to add an extra analysis to the default array of active analyses for a specific regression test.

An option to remove a constant from an array would also be useful, so it's suggested by this pull request. It would be used like this:
// PARAM: --set ana.activated[-] "'mallocWrapper'"

Copy link
Copy Markdown
Member

@sim642 sim642 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a nice feature that can be used to clean up PARAMs of our regression tests. Instead of having a regression test respecify all analyses except one, it can now just disable one. Changing default analyses would be tremendously easier compared to fixing all regression tests like we did for mallocWrapper, threadflag and threadid.

@michael-schwarz michael-schwarz merged commit 82323b6 into master Mar 18, 2021
@michael-schwarz michael-schwarz deleted the config_remove_from_array branch March 18, 2021 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants