Bug 4895 - Enhance LSB_Test.sh to detect the download error
Summary: Enhance LSB_Test.sh to detect the download error
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.5
Assignee: Yi Zhao
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-07-23 04:36 UTC by Yi Zhao
Modified: 2013-07-30 07:19 UTC (History)
10 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2013-07-23 04:36:23 UTC
Git rev: master/31e6eee860b5f9f4ac9ef0889bcff5648de6e3f9

When run LSB_Test.sh to perform LSB test, during packages downloading, if the package does not exist in the remote server, the script can not detect the failure. That is because the default behavior of curl command. 

In normal cases when a HTTP server fails to deliver a file, it returns an HTML document to describe the fail reason (e.g. 404 Not Found). The curl will output this page as a file and not return error. 

Add a "-f" option will prevent curl from outputting that and return error 22.