Skip to content

Commit 60c98bf

Browse files
committed
replaced whoami string with user to get the actual logged in user
1 parent 34651dd commit 60c98bf

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

test/integration/e2e_logging_paths.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ readonly LOGGING_BASE="$(dirname "${LOGGING}")"
2727
declare LOGGING_OVERRIDE
2828

2929
readonly JOB_NAME="log-test"
30-
readonly JOB_USER="${USER:-whoami}"
30+
readonly JOB_USER="${USER:-$(whoami)}"
3131

3232
# Test a basic job with base logging path
3333
echo "Subtest #1: Basic logging path"

test/integration/e2e_logging_paths_pattern_tasks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ readonly LOGGING_BASE="$(dirname "${LOGGING}")"
3131
declare LOGGING_OVERRIDE
3232

3333
readonly JOB_NAME=$(logging_paths_tasks_setup::get_job_name)
34-
readonly JOB_USER="${USER:-whoami}"
34+
readonly JOB_USER="${USER:-$(whoami)}"
3535

3636
# Set up the tasks file
3737
logging_paths_tasks_setup::write_tasks_file

test/integration/io_setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ readonly REQUESTER_PAYS_INPUT_BAM_FULL_PATH="gs://${DSUB_BUCKET_REQUESTER_PAYS}/
2727
readonly REQUESTER_PAYS_POPULATION_FILE_FULL_PATH="gs://${DSUB_BUCKET_REQUESTER_PAYS}/${POPULATION_FILE}"
2828

2929
# Set user variable like in other tests
30-
readonly JOB_USER="${USER:-whoami}"
30+
readonly JOB_USER="${USER:-$(whoami)}"
3131
# This is the image we use to test the PD mount feature.
3232
# Inject the TEST_TOKEN into the name so that multiple tests can run
3333
# concurrently. Since the image test can be run multiple times for one

test/integration/io_tasks_setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
readonly JOB_USER="${USER:-whoami}"
15+
readonly JOB_USER="${USER:-$(whoami)}"
1616
readonly POPULATION_FILE="gs://genomics-public-data/ftp-trace.ncbi.nih.gov/1000genomes/ftp/20131219.superpopulations.tsv"
1717
readonly POPULATION_MD5="68a73f849b82071afe11888bac1aa8a7"
1818

0 commit comments

Comments
 (0)