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

test command exits with 0 if job fails #312

Open
sargreal opened this issue Sep 12, 2020 · 0 comments
Open

test command exits with 0 if job fails #312

sargreal opened this issue Sep 12, 2020 · 0 comments

Comments

@sargreal
Copy link

I am trying to test jobs and expected to get no-zero exit code if the job fails (i.e. return code is forwarded).
However this is not the case:

bash-5.0# jobber test VolumerizeBackupJob
Running job "VolumerizeBackupJob"...
/etc/volumerize/periodicBackup: line 7: /etc/volumerize/backup.sh: No such file or directory


Job failed
bash-5.0# echo $?
0

bash-5.0# /etc/volumerize/periodicBackup
/etc/volumerize/periodicBackup: line 7: /etc/volumerize/backup.sh: No such file or directory
bash-5.0# echo $?
1
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

1 participant