<div dir="ltr">Am rezolvat pana la urma, problema era ca trebuia sa trimit header-ul http de reply cu send-uri multiple.<div>Un singur send nu il trimitea pe tot cand rulam checker-ul spre deosebire de rularea locala cand se trimitea tot header-ul deodata.</div><div><br></div><div>Multumesc,</div><div>Relu Dragan</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-05-21 21:11 GMT+03:00 Relu Dragan <span dir="ltr"><<a href="mailto:draganrelu@gmail.com" target="_blank">draganrelu@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Salut,<div><br></div><div>Cand testez local cererea unui fisier static cu wget prin comanda</div><div><div>wget -t 1 "<a href="http://localhost:8888/static/file.txt" target="_blank">http://localhost:8888/static/<wbr>file.txt</a>" -o wget.log -O file.txt</div></div><div>si verific cu diff sau cmp continutulul fisierelor totul este in regula.</div><div>Insa testele 16-19 cateodata imi pica. M-am uitat in checker la codul acestor teste </div><div>si am observat ca desi exit code-ul comenzii wget este intotdeauna 0, exit codul comenzii</div><div>[ -s small00.dat ] este cateodata 1. </div><div>De unde ar putea fi problema?</div><div><br></div><div>Am atasat codul testului 16:</div><div><div>test_get_small_file_wget()</div><div>{</div><div><span class="m_6590940116742411396gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>init_test</div><div><br></div><div><span class="m_6590940116742411396gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>wget -t 1 "<a href="http://localhost:8888/$(basename" target="_blank">http://localhost:8888/$(<wbr>basename</a> $static_folder)/small00.dat" \</div><div><span class="m_6590940116742411396gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>-o $WGET_LOG -O small00.dat</div><div><span class="m_6590940116742411396gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>code1=$?</div><div><br></div><div><span class="m_6590940116742411396gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>[ -s small00.dat ]</div><div><span class="m_6590940116742411396gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>code2=$?</div><div><span class="m_6590940116742411396gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>basic_test test $code1 -eq 0 -a $code2 -eq 0</div><div><br></div><div><span class="m_6590940116742411396gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>rm small00.dat</div><div><span class="m_6590940116742411396gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>cleanup_test</div><div>}</div></div><div><br></div><div>Multumesc,</div><div>Relu Dragan</div></div>
</blockquote></div><br></div>