Whamcloud - gitweb
LU-8052 test: stop using unknonwn sed option 14/19714/5
authorBob Glossman <bob.glossman@intel.com>
Thu, 21 Apr 2016 17:18:16 +0000 (10:18 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 27 Apr 2016 14:48:39 +0000 (14:48 +0000)
Avoid the use of the -E command line option for sed.
It isn't known in all versions.

Signed-off-by: Bob Glossman <bob.glossman@intel.com>
Change-Id: I66f58aa04ecc751f4b3d61475cafe0c478ce6206
Reviewed-on: http://review.whamcloud.com/19714
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/tests/test-framework.sh

index 711d394..27b0c10 100755 (executable)
@@ -59,7 +59,7 @@ sanitize_parameters() {
        do
                local path=${!i}
                if [ -d "$path" ]; then
-                       eval export $i=$(echo $path | sed -E 's/\/+$//g')
+                       eval export $i=$(echo $path | sed -r 's/\/+$//g')
                fi
        done
 }