Tests: clear: remove test workspace directory
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 8 Oct 2020 22:15:34 +0000 (18:15 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 9 Oct 2020 21:03:08 +0000 (17:03 -0400)
The clear tests only removes its workspace's subdirectory, but
leaves an empty directory behind. Remove the wildcard and remove
the root of the workspace on clean-up.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I551f892af5423c6ed5933beb0c1a13f41a30a26e

tests/regression/tools/clear/test_kernel
tests/regression/tools/clear/test_ust

index 300a2bbc8cd076c7030b130064d6a6d33a5a81c7..051f3de24ec890756bc8dba13302af9145a754c4 100755 (executable)
@@ -28,7 +28,7 @@ function clean_path ()
 {
        local trace_path=$1
        set -u
 {
        local trace_path=$1
        set -u
-       rm -rf $trace_path/*
+       rm -rf $trace_path
        set +u
 }
 
        set +u
 }
 
index 04b713909c7a664e28ec46839424e35d05839ff2..3983d121533d4ff5d837c7c0fbf028296f709821 100755 (executable)
@@ -31,7 +31,7 @@ function clean_path ()
 {
        local trace_path=$1
        set -u
 {
        local trace_path=$1
        set -u
-       rm -rf $trace_path/*
+       rm -rf $trace_path
        set +u
 }
 
        set +u
 }
 
This page took 0.029555 seconds and 4 git commands to generate.