Fix: Tests: trace path wildcards not expanded
[lttng-tools.git] / tests / utils / utils.sh
index b326c5bcf94166358e341217078aa1721bb2c8e7..88a4ddd20c30216d6f19ea07b4160df998cb3c9b 100644 (file)
@@ -1860,7 +1860,9 @@ function validate_directory_empty ()
 {
        local trace_path="$1"
 
-       files="$(ls -A "$trace_path")"
+       # Do not double quote `$trace_path` below as we want wildcards to be
+       # expanded.
+       files="$(ls -A $trace_path)"
        ret=$?
        if [ $ret -ne 0 ]; then
                fail "Failed to list content of directory \"$trace_path\""
This page took 0.023019 seconds and 4 git commands to generate.