private void testScriptFile(String scriptText, List<String> argList, String expectedRegex,
      boolean shouldMatch) throws Throwable {
    testScriptFile(scriptText, argList, OutStream.OUT,
        Collections.singletonList(new Tuple<>(expectedRegex, shouldMatch))
    );
  }
Attempt to execute a simple script file with the -f and -i option to
BeeLine to test for presence of an expected pattern in the output (stdout
or stderr), fail if not found. Print PASSED or FAILED

@param expectedRegex
         Text to look for in command output (stdout)
@param shouldMatch
         true if the pattern should be found, false if it should not
@throws Exception
          on command execution error
itests/hive-unit/src/test/java/org/apache/hive/beeline/TestBeeLineWithArgs.java