fix: tests: grep for '$key =' in metadata
[lttng-tools.git] / tests / regression / tools / metadata / utils.sh
index 2aad996fa49678ff8c045e5b84b90f971669efbf..a355936c6d2265f69faf869b82bd658a3d534743 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/bash
 #
-# Copyright (C) 2019 Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
+# Copyright (C) 2019 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
 #
 # SPDX-License-Identifier: LGPL-2.1-only
 
@@ -11,7 +11,7 @@ function get_env_value ()
        local result
        local ret
 
-       result=$(grep "$key" < "$env_file")
+       result=$(grep "$key =" < "$env_file")
        ret=$?
        if [ $ret -eq 1 ]; then
                echo "invalid_value_extraction"
This page took 0.023739 seconds and 4 git commands to generate.