From b7c0b61782251c1dedb0b0fb0e6654af81249910 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Fri, 11 Oct 2013 18:33:08 -0700 Subject: [PATCH] glsl: Use more portable bash invocation construct. Fixes 'make check' on distros where bash is not at /bin/bash. Signed-off-by: Vinson Lee Reviewed-by: Brian Paul Reviewed-by: Ian Romanick Tested-by: Ian Romanick --- src/glsl/tests/lower_jumps/create_test_cases.py | 2 +- src/glsl/tests/lower_jumps/lower_breaks_1.opt_test | 2 +- src/glsl/tests/lower_jumps/lower_breaks_2.opt_test | 2 +- src/glsl/tests/lower_jumps/lower_breaks_3.opt_test | 2 +- src/glsl/tests/lower_jumps/lower_breaks_4.opt_test | 2 +- src/glsl/tests/lower_jumps/lower_breaks_5.opt_test | 2 +- src/glsl/tests/lower_jumps/lower_breaks_6.opt_test | 2 +- .../tests/lower_jumps/lower_guarded_conditional_break.opt_test | 2 +- src/glsl/tests/lower_jumps/lower_pulled_out_jump.opt_test | 2 +- src/glsl/tests/lower_jumps/lower_returns_1.opt_test | 2 +- src/glsl/tests/lower_jumps/lower_returns_2.opt_test | 2 +- src/glsl/tests/lower_jumps/lower_returns_3.opt_test | 2 +- src/glsl/tests/lower_jumps/lower_returns_4.opt_test | 2 +- src/glsl/tests/lower_jumps/lower_returns_main_false.opt_test | 2 +- src/glsl/tests/lower_jumps/lower_returns_main_true.opt_test | 2 +- src/glsl/tests/lower_jumps/lower_returns_sub_false.opt_test | 2 +- src/glsl/tests/lower_jumps/lower_returns_sub_true.opt_test | 2 +- src/glsl/tests/lower_jumps/lower_unified_returns.opt_test | 2 +- .../tests/lower_jumps/remove_continue_at_end_of_loop.opt_test | 2 +- .../return_non_void_at_end_of_loop_lower_nothing.opt_test | 2 +- .../return_non_void_at_end_of_loop_lower_return.opt_test | 2 +- ...turn_non_void_at_end_of_loop_lower_return_and_break.opt_test | 2 +- .../return_void_at_end_of_loop_lower_nothing.opt_test | 2 +- .../return_void_at_end_of_loop_lower_return.opt_test | 2 +- .../return_void_at_end_of_loop_lower_return_and_break.opt_test | 2 +- src/glsl/tests/optimization-test | 2 +- 26 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/glsl/tests/lower_jumps/create_test_cases.py b/src/glsl/tests/lower_jumps/create_test_cases.py index fbc6f0a84ea..9974681e02f 100644 --- a/src/glsl/tests/lower_jumps/create_test_cases.py +++ b/src/glsl/tests/lower_jumps/create_test_cases.py @@ -291,7 +291,7 @@ def create_test_case(doc_string, input_sexp, expected_sexp, test_name, args = ['../../glsl_test', 'optpass', '--quiet', '--input-ir', optimization] test_file = '{0}.opt_test'.format(test_name) with open(test_file, 'w') as f: - f.write('#!/bin/bash\n#\n# This file was generated by create_test_cases.py.\n#\n') + f.write('#!/usr/bin/env bash\n#\n# This file was generated by create_test_cases.py.\n#\n') f.write(doc_string) f.write('{0} <