Skip to content

Commit

Permalink
run-tests: fix shebang to find bash more reliably
Browse files Browse the repository at this point in the history
Not all systems have bash located at /bin/bash.
A better way to run bash with shebang is with:
`#!/usr/bin/env bash`

Signed-off-by: Mark Pashmfouroush <mark@isovalent.com>
  • Loading branch information
markpash authored and lmb committed Jun 10, 2022
1 parent 0647c0a commit 3c31566
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Test the current package under a different kernel.
# Requires virtme and qemu to be installed.
# Examples:
Expand Down Expand Up @@ -61,7 +61,7 @@ if [[ "${1:-}" = "--exec-vm" ]]; then
if [[ -e "${output}/status" ]]; then
break
fi

if [[ -v CI ]]; then
echo "Retrying test run due to qemu crash"
continue
Expand Down

0 comments on commit 3c31566

Please sign in to comment.