Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make test-infra more mac friendly. #1350

Merged
merged 1 commit into from
Sep 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/prow/boskos/create_projects.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2019 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion ci/prow/boskos/set_permissions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2019 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion ci/prow/run_job.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2018 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion devstats/postgre-docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2019 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion devstats/scripts/copy_devstats_binaries.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2019 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion devstats/scripts/copy_grafana_files.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2019 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion devstats/scripts/generate_repo_groups.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2019 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion devstats/scripts/import_affs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2019 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion devstats/scripts/k8s_objects.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2019 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion devstats/scripts/setup_db.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2019 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion devstats/scripts/setup_mount.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2019 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion devstats/scripts/tags.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2019 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion devstats/updateConfig.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2019 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion images/backups/backup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2018 The Knative Authors
#
Expand Down
4 changes: 2 additions & 2 deletions scripts/e2e-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2019 The Knative Authors
#
Expand Down Expand Up @@ -226,7 +226,7 @@ function create_test_cluster() {
local test_wrapper="${kubedir}/e2e-test.sh"
mkdir ${kubedir}/cluster
ln -s "$(which kubectl)" ${kubedir}/cluster/kubectl.sh
echo "#!/bin/bash" > ${test_wrapper}
echo "#!/usr/bin/env bash" > ${test_wrapper}
echo "cd $(pwd) && set -x" >> ${test_wrapper}
echo "${E2E_SCRIPT} ${test_cmd_args}" >> ${test_wrapper}
chmod +x ${test_wrapper}
Expand Down
6 changes: 3 additions & 3 deletions scripts/library.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2018 The Knative Authors
#
Expand Down Expand Up @@ -283,9 +283,9 @@ function acquire_cluster_admin_role() {
local key=$(mktemp)
echo "Certificate in ${cert}, key in ${key}"
gcloud --format="value(masterAuth.clientCertificate)" \
container clusters describe $2 ${geoflag} | base64 -d > ${cert}
adrcunha marked this conversation as resolved.
Show resolved Hide resolved
container clusters describe $2 ${geoflag} | base64 --decode > ${cert}
gcloud --format="value(masterAuth.clientKey)" \
container clusters describe $2 ${geoflag} | base64 -d > ${key}
container clusters describe $2 ${geoflag} | base64 --decode > ${key}
kubectl config set-credentials cluster-admin \
--client-certificate=${cert} --client-key=${key}
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/presubmit-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2018 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2018 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion test/e2e-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2018 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion test/presubmit-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2018 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion test/unit/cleanup-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2018 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion test/unit/e2e-custom-flag-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2018 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion test/unit/library-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2018 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion test/unit/presubmit-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2018 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion test/unit/release-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2018 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion test/unit/test-helper.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2018 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion tools/cleanup/cleanup-functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2018 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion tools/cleanup/cleanup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2018 The Knative Authors
#
Expand Down
2 changes: 1 addition & 1 deletion tools/monitoring/clearalerts/run_clear_alerts.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -x

Expand Down