Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: dev

Issue 1223 in cherokee: `cherokee --test` should return a non-zero exit code on failure

 

 

Cherokee dev RSS feed   Index | Next | Previous | View Threaded


cherokee at googlecode

Jun 22, 2011, 12:55 PM

Post #1 of 3 (164 views)
Permalink
Issue 1223 in cherokee: `cherokee --test` should return a non-zero exit code on failure

Status: New
Owner: ----

New issue 1223 by charles....@gmail.com: `cherokee --test` should return a
non-zero exit code on failure
http://code.google.com/p/cherokee/issues/detail?id=1223

What steps will reproduce the problem?
1. Run `cherokee --test` on a malformed config file
2. Check the exit status `echo $?`

What is the expected output? What do you see instead?

Expect an non-zero exit code if there were problems with the config file.
Instead, have to parse the output to determine success or failure.


What version of the product are you using? On what operating system?

Cherokee 1.2.98 on OS X 10.6.7


_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Jun 23, 2011, 12:44 AM

Post #2 of 3 (147 views)
Permalink
Re: Issue 1223 in cherokee: `cherokee --test` should return a non-zero exit code on failure [In reply to]

Updates:
Status: Accepted
Labels: Type-Defect Priority-Medium OpSys-All Component-Logic

Comment #1 on issue 1223 by alobbs: `cherokee --test` should return a
non-zero exit code on failure
http://code.google.com/p/cherokee/issues/detail?id=1223

Seems to be related to the process handling in cherokee. Cherokee-worker
does work fine.

=======
$ cherokee-worker --test -C /bin/cat
[23/06/2011 09:16:22.425] (error) config_reader.c:312 - Parsing error | The
server could not parse the configuration. Something must be wrong with
formation. At this stage the lexical is checked.

Test on /bin/cat: Failed

$ echo $?
1
=======

=======
$ cherokee --test -C /bin/cat
[23/06/2011 09:16:06.623] (error) config_reader.c:312 - Parsing error | The
server could not parse the configuration. Something must be wrong with
formation. At this stage the lexical is checked.

Test on /bin/cat: Failed
PID 1000: exited re=1

$ echo $?
0
=======

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Jun 23, 2011, 12:16 PM

Post #3 of 3 (143 views)
Permalink
Re: Issue 1223 in cherokee: `cherokee --test` should return a non-zero exit code on failure [In reply to]

Updates:
Status: Fixed
Owner: alobbs

Comment #2 on issue 1223 by alobbs: `cherokee --test` should return a
non-zero exit code on failure
http://code.google.com/p/cherokee/issues/detail?id=1223

svn.cherokee-project.com/changeset/6763 fixed it. The patch will be shipped
in the upcoming Cherokee 1.2.99.

Thanks for reporting!!

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev

Cherokee dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.