From 1bd03c9c22ca7f36b9f1647c258b5f18c8ac92c0 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Sun, 12 Apr 2020 20:16:55 -0500 Subject: [PATCH] tests: Run perl via 'env' The 'perl' binary may not be /usr/bin/perl, depending on the system. For example, on modern FreeBSD it tends to be /usr/local/bin/perl instead. To avoid relying on perl to be in a specific location, just run via /usr/bin/env instead, so we pick up perl from $PATH instead. Change-Id: Ic8dc247c82342ff79dfa80426c489ccb8e3e1450 Reviewed-on: https://gerrit.openafs.org/14144 Tested-by: Andrew Deason Reviewed-by: Benjamin Kaduk --- tests/bozo/bos-man-t | 2 +- tests/bucoord/backup-man-t | 2 +- tests/kauth/kas-man-t | 2 +- tests/opr/softsig-t | 2 +- tests/ptserver/pt_util-t | 2 +- tests/ptserver/pts-man-t | 2 +- tests/rx/perf-t | 2 +- tests/venus/fs-man-t | 2 +- tests/volser/vos-man-t | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/bozo/bos-man-t b/tests/bozo/bos-man-t index 32001c1..cfdc809 100755 --- a/tests/bozo/bos-man-t +++ b/tests/bozo/bos-man-t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings; diff --git a/tests/bucoord/backup-man-t b/tests/bucoord/backup-man-t index d062a80..2366e79 100755 --- a/tests/bucoord/backup-man-t +++ b/tests/bucoord/backup-man-t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings; diff --git a/tests/kauth/kas-man-t b/tests/kauth/kas-man-t index fb6b8cd..a877b73 100755 --- a/tests/kauth/kas-man-t +++ b/tests/kauth/kas-man-t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings; diff --git a/tests/opr/softsig-t b/tests/opr/softsig-t index 09f4e50..a0d0fce 100755 --- a/tests/opr/softsig-t +++ b/tests/opr/softsig-t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # # Copyright (c) 2010 Your File System Inc. All rights reserved. # diff --git a/tests/ptserver/pt_util-t b/tests/ptserver/pt_util-t index 8d3cdcb..723b858 100755 --- a/tests/ptserver/pt_util-t +++ b/tests/ptserver/pt_util-t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings; diff --git a/tests/ptserver/pts-man-t b/tests/ptserver/pts-man-t index 0c32dc9..4bfabee 100755 --- a/tests/ptserver/pts-man-t +++ b/tests/ptserver/pts-man-t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings; diff --git a/tests/rx/perf-t b/tests/rx/perf-t index 025d6b5..19ec85a 100755 --- a/tests/rx/perf-t +++ b/tests/rx/perf-t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings; diff --git a/tests/venus/fs-man-t b/tests/venus/fs-man-t index 2f3e644..952b6bb 100755 --- a/tests/venus/fs-man-t +++ b/tests/venus/fs-man-t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings; diff --git a/tests/volser/vos-man-t b/tests/volser/vos-man-t index 90770b2..8bd7259 100755 --- a/tests/volser/vos-man-t +++ b/tests/volser/vos-man-t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings; -- 1.9.4