Re: [PATCH v3 3/3] Smart-http tests: Test http-backend without curl or a webserver
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Jan 2, 2010, 21:03 UTC
- Message-ID
- <20100102210318.GN6914@spearce.org>
- In-Reply-To
- <1262465119-96115-3-git-send-email-tarmigan+git@gmail.com>
Tarmigan Casebolt <tarmigan+git@gmail.com> wrote:
Show 6 quoted lines
> GET() {
> - return 0
> + REQUEST_METHOD="GET" \
> + run_backend "/repo.git/$1" &&
> + grep "Status" act.out >act
> + if [ $? -eq 1 ];I think this should be spelled as:
if ! grep "Status" act.out >act; then printf "Status: 200 OK\r\n" > act fi
-- Shawn.