Description of problem: Check psql wrapper function in /usr/bin/rhcsh, psql command's return value is always return 0. Version-Release number of selected component (if applicable): devenv_4850 How reproducible: Always Steps to Reproduce: 1.Create app, and embed postgresql. 2.Log into this app, run psql command with non-existing file. > psql -f xx; echo $? psql: FATAL: password authentication failed for user "admin1hygbvy" 0 3. Actual results: It always return 0. Expected results: Psql wrapper should return non-zero value when psql command is failed. Additional info:
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/73808983505a93095351d503742809a343b36de5 Bug 1106413: psql wrapper always return zero even if psql command is already failed
Verified this bug with devenv_4860, and PASS. > psql -f xx; echo $? xx: No such file or directory 1