Created attachment 360178 [details] RHEL4 test output The command line tools contained in qpid-python package behave inconsistently when supplied with different parameters. Much of this is caused by using two different python libraries for handling command line parameters. getopt-based are: qpid-cluster qpid-config qpid-route qpid-stat qpid-tool python-qpid-tests (using testlib) - this last one is packaged and renamed from old qpid/python/run-tests - current qpid/python/qpid-python-test is optparse-based optparse-based are: qpid-printevents qpid-queue-stats See attached test and its output on both RHELs.
Created attachment 360179 [details] RHEL5 test output
Created attachment 360180 [details] test itself
Target to 1.3
Fixed at svn rev 947858.
Used the test provided above to test the changes, all items resulted in OK status after the changes. The changes will need to be ported to the next package rebuild, as a patch.
Created attachment 416472 [details] svn rev 947858
Created attachment 422905 [details] updated test (package qpid-tools) There are still some failures. Look at the next attachment.
Created attachment 422906 [details] RHEL4 test output (updated)
But my findings are minor, the important thing is that usage gets printed when user supplies unknown parameter.
Created attachment 422912 [details] updated test, v3 Discussed with František, we agreed that "no such option" is not vital. I changed the test to not check for it. Verified on qpid-tools-0.7.946106-4.el5 i386 and x86_64 qpid-tools-0.7.946106-4.el5 i386 and x86_64
Fix push into mrg_1.3.x (required by fix for https://bugzilla.redhat.com/show_bug.cgi?id=619502) http://mrg1.lab.bos.redhat.com/git/?p=qpid.git;a=commitdiff;h=db3ac72a8254145ee98c9f8f3217382ea2ac4883
Verified on qpid-tools-0.7.946106-10.el5. qpid-tools-0.7.946106-10.el5 --- Running with parameter "-h" and awaiting "usage". /usr/bin/qpid-cluster OK /usr/bin/qpid-cluster-store OK /usr/bin/qpid-config OK /usr/bin/qpid-printevents OK /usr/bin/qpid-queue-stats OK /usr/bin/qpid-route OK /usr/bin/qpid-stat OK /usr/bin/qpid-tool OK --- Running with parameter "--help" and awaiting "usage". /usr/bin/qpid-cluster OK /usr/bin/qpid-cluster-store OK /usr/bin/qpid-config OK /usr/bin/qpid-printevents OK /usr/bin/qpid-queue-stats OK /usr/bin/qpid-route OK /usr/bin/qpid-stat OK /usr/bin/qpid-tool OK --- Running with parameter "--nonsense789" and awaiting "usage". /usr/bin/qpid-cluster OK /usr/bin/qpid-cluster-store OK /usr/bin/qpid-config OK /usr/bin/qpid-printevents OK /usr/bin/qpid-queue-stats OK /usr/bin/qpid-route OK /usr/bin/qpid-stat OK /usr/bin/qpid-tool OK --- Running with parameter "--nonsense789" and awaiting "no such option". /usr/bin/qpid-cluster OK /usr/bin/qpid-cluster-store OK /usr/bin/qpid-config OK /usr/bin/qpid-printevents OK /usr/bin/qpid-queue-stats OK /usr/bin/qpid-route OK /usr/bin/qpid-stat OK /usr/bin/qpid-tool OK