[MLIR] prefer /bin/sh over /bin/bash for simple test scripts
authorWill Dietz <w@wdtz.org>
Thu, 21 Apr 2022 22:14:45 +0000 (17:14 -0500)
committerWill Dietz <w@wdtz.org>
Fri, 22 Apr 2022 01:25:17 +0000 (20:25 -0500)
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

mlir/test/mlir-reduce/failure-test.sh
mlir/test/mlir-reduce/test.sh

index 6a07743..f5ddfb8 100755 (executable)
@@ -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.$$
 
index 33d02f4..a21bf96 100755 (executable)
@@ -1,6 +1,6 @@
-#!/bin/bash
+#!/bin/sh
 
 #Replicate bug
 
 #Interesting behavior
-exit 1
\ No newline at end of file
+exit 1