From: Will Dietz Date: Thu, 21 Apr 2022 22:14:45 +0000 (-0500) Subject: [MLIR] prefer /bin/sh over /bin/bash for simple test scripts X-Git-Tag: upstream/15.0.7~9716 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bb8c8751cf6b1e40e2437b70ef2063808e2b3998;p=platform%2Fupstream%2Fllvm.git [MLIR] prefer /bin/sh over /bin/bash for simple test scripts These scripts do not appear to require bash, and while /bin/sh is not guaranteed either it's more commonly available. Fixes tests on NixOS and in certain sandbox build environments. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D124205 --- diff --git a/mlir/test/mlir-reduce/failure-test.sh b/mlir/test/mlir-reduce/failure-test.sh index 6a07743..f5ddfb8 100755 --- a/mlir/test/mlir-reduce/failure-test.sh +++ b/mlir/test/mlir-reduce/failure-test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # Tests for the keyword "failure" in the stderr of the optimization pass mlir-opt $1 -test-mlir-reducer > /tmp/stdout.$$ 2>/tmp/stderr.$$ diff --git a/mlir/test/mlir-reduce/test.sh b/mlir/test/mlir-reduce/test.sh index 33d02f4..a21bf96 100755 --- a/mlir/test/mlir-reduce/test.sh +++ b/mlir/test/mlir-reduce/test.sh @@ -1,6 +1,6 @@ -#!/bin/bash +#!/bin/sh #Replicate bug #Interesting behavior -exit 1 \ No newline at end of file +exit 1