Skip to content
Snippets Groups Projects
Commit 9d534833 authored by Sami Kerola's avatar Sami Kerola Committed by Kamil Dudka
Browse files

test: use simple test-config removal in test-common.sh


Piping ls output to egrep in subshell is over the top difficult way to
achieve what can be done with a simple regular expression.

Signed-off-by: default avatarSami Kerola <kerolasa@iki.fi>

Closes #138
parent 2f6e45ca
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -22,8 +22,7 @@ import "test-common-selinux.sh"
import "test-config.$TESTNUM.in"
 
cleanup() {
rm -f test*.log* anothertest*.log* state test-config. scriptout mail-out compress-args compress-env different*.log*
rm -f $(ls | egrep '^test-config.[0-9]+$')
rm -f test*.log* anothertest*.log* state test-config. scriptout mail-out compress-args compress-env different*.log* test-config.*[0-9]
 
[ -n "$1" ] && echo "Running test $1"
return 0
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment