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

dds-info exit code 1 #470

Closed
karabowi opened this issue Feb 8, 2023 · 1 comment
Closed

dds-info exit code 1 #470

karabowi opened this issue Feb 8, 2023 · 1 comment
Assignees
Milestone

Comments

@karabowi
Copy link

karabowi commented Feb 8, 2023

I am using FairSoft nov22p1 + FairRoot dev,
and have some problem with the scripts running dds.
The scripts (f.e. https://github.com/FairRootGroup/FairRoot/blob/dev/examples/MQ/pixelSimSplit/run/scripts/test-splitMC.sh.in)
start with set -e, which forces script exit on first fail.

On my mac (Monterey 12.4) these scripts fail immediately upon calling dds-info —version.
After some research the problem is that my dds-info —version returns a fail code (1):

karabowi@citmac007:~ $ date ; dds-info --version
Wed Feb  8 14:46:12 CET 2023
dds-info: DDS v3.6
DDS configuration v0.4
DDS protocol v2
Report bugs or comments to [email protected]
karabowi@citmac007:~ $ echo $?
1
karabowi@citmac007:~ $ tail -15 ~/.dds/log/dds_2023-02-08.0.log
2023-02-08 14:45:35.124894   inf    dds-info             <0x00015861:0x0000000111837600>    Set $DYLD_LIBRARY_PATH to "/Users/karabowi/fairsoft/nov22p1_D21.5_c13.1/install/lib:/Users/karabowi/fairroot/dev/build_nov22p1_D21.5_c13.1/lib:/Users/karabowi/fairsoft/nov22p1_D21.5_c13.1/install/lib:"
2023-02-08 14:45:35.124918   inf    dds-info             <0x00015861:0x0000000111837600>    Starting with arguments: --version 
2023-02-08 14:45:35.124975   cout   dds-info             <0x00015861:0x0000000111837600>    DDS v3.6
DDS configuration v0.4
DDS protocol v2
Report bugs or comments to [email protected]
2023-02-08 14:46:13.021861   inf    dds-info             <0x00015a2f:0x0000000116cdc600>    Log engine is initialized with severety "inf"
2023-02-08 14:46:13.022385   inf    dds-info             <0x00015a2f:0x0000000116cdc600>    Set $DDS_LOCATION to "/Users/karabowi/fairsoft/nov22p1_D21.5_c13.1/install"
2023-02-08 14:46:13.022412   inf    dds-info             <0x00015a2f:0x0000000116cdc600>    DDS "bin" directory ("/Users/karabowi/fairsoft/nov22p1_D21.5_c13.1/install/bin") already prepends $PATH ("/Users/karabowi/fairsoft/nov22p1_D21.5_c13.1/install/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/Library/Apple/usr/bin:/usr/local/texlive/2016/bin/x86_64-darwin/")
2023-02-08 14:46:13.022443   inf    dds-info             <0x00015a2f:0x0000000116cdc600>    Set $DYLD_LIBRARY_PATH to "/Users/karabowi/fairsoft/nov22p1_D21.5_c13.1/install/lib:/Users/karabowi/fairroot/dev/build_nov22p1_D21.5_c13.1/lib:/Users/karabowi/fairsoft/nov22p1_D21.5_c13.1/install/lib:"
2023-02-08 14:46:13.022463   inf    dds-info             <0x00015a2f:0x0000000116cdc600>    Starting with arguments: --version 
2023-02-08 14:46:13.022515   cout   dds-info             <0x00015a2f:0x0000000116cdc600>    DDS v3.6
DDS configuration v0.4
DDS protocol v2
Report bugs or comments to [email protected]
karabowi@citmac007:~ $ 

Why is it returning ‘1’ even though everything seems fine?

@AnarManafov AnarManafov self-assigned this Feb 9, 2023
@AnarManafov AnarManafov added this to the 3.8 milestone Feb 9, 2023
AnarManafov added a commit to AnarManafov/DDS that referenced this issue Feb 21, 2023
dds-info: Fixed: wrong exit code when called with --help/--version. (FairRootGroupGH-470)
AnarManafov added a commit to AnarManafov/DDS that referenced this issue Feb 21, 2023
dds-info: Fixed: wrong exit code when called with --help/--version. (FairRootGroupGH-470)
@AnarManafov
Copy link
Contributor

should be fixed in the master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants