help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash -x doesn't always show "exec"


From: John Hanks
Subject: Re: bash -x doesn't always show "exec"
Date: Wed, 24 Mar 2021 05:26:26 -0500

Hi Marco,

Similar result only now instead of the exec missing, the call to the
bats-exec-suite is missing:

>From slurm job things fail:

+ 10:10:17 /home/prd_rdip_mfish/local/libexec/bats-core/bats.debug:L213:  -
[3,0,0][[ -d
/hpc/projects/stv/mFish/UAT/dva_mfish/mfish/etl/tests/imports.bats ]]
+ 10:10:17 /home/prd_rdip_mfish/local/libexec/bats-core/bats.debug:L226:  -
[3,0,1]filenames+=("$filename")
+ 10:10:17 /home/prd_rdip_mfish/local/libexec/bats-core/bats.debug:L231:  -
[3,0,0]source /home/prd_rdip_mfish/local/lib/bats-core/validator.bash
+ 10:10:17 /home/prd_rdip_mfish/local/libexec/bats-core/bats.debug:L233:  -
[3,0,0]set -o pipefail execfail
+ 10:10:17 /home/prd_rdip_mfish/local/libexec/bats-core/bats.debug:L235:  -
[3,0,0]bats-format-pretty
+ 10:10:17 /home/prd_rdip_mfish/local/libexec/bats-core/bats.debug:L235:  -
[3,0,0]bats_test_count_validator

>From "normal" session things work:

+ 10:09:45 /home/prd_rdip_mfish/local/libexec/bats-core/bats.debug:L213:  -
[3,0,0][[ -d
/hpc/projects/stv/mFish/UAT/dva_mfish/mfish/etl/tests/imports.bats ]]
+ 10:09:45 /home/prd_rdip_mfish/local/libexec/bats-core/bats.debug:L226:  -
[3,0,1]filenames+=("$filename")
+ 10:09:45 /home/prd_rdip_mfish/local/libexec/bats-core/bats.debug:L231:  -
[3,0,0]source /home/prd_rdip_mfish/local/lib/bats-core/validator.bash
+ 10:09:45 /home/prd_rdip_mfish/local/libexec/bats-core/bats.debug:L233:  -
[3,0,0]set -o pipefail execfail
+ 10:09:45 /home/prd_rdip_mfish/local/libexec/bats-core/bats.debug:L235:  -
[3,0,0]bats-exec-suite -x
/hpc/projects/stv/mFish/UAT/dva_mfish/mfish/etl/tests/imports.bats
+ 10:09:45 /home/prd_rdip_mfish/local/libexec/bats-core/bats.debug:L235:  -
[3,0,0]bats_test_count_validator
+ 10:09:45 /home/prd_rdip_mfish/local/libexec/bats-core/bats.debug:L235:  -
[3,0,0]bats-format-pretty

Best,

jbh

On Tue, Mar 23, 2021 at 6:40 PM Marco Ippolito <maroloccio@gmail.com> wrote:

> > Any answers, advice or pointers to where I should be looking are
> > appreciated.
>
> What happens if in the file:
>
>     /home/prd_rdip_mfish/local/libexec/bats-core/bats.debug
>
> around line L234 rather than calling:
>
>     exec bats-exec-suite \
>         -x
> /hpc/projects/stv/mFish/UAT/dva_mfish/mfish/etl/tests/imports.bats \
>         /home/prd_rdip_mfish/local/libexec/bats-core/bats.debug:L234
>
> you do away with the exec by editing the file and change it to just run
> bats-exec-suite?
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]