Package building log url is not correct

Jenkins side sends OBS_URL as log url now.

Fixes: #2148

Change-Id: I0add79f769a414ea7ca8c27bf3b1cdef39cd7b19
Signed-off-by: gaoxuesx <xuesongx.gao@intel.com>
Fixes the package built status bug

The status include "OBS_BUILD_SUCCESS" and "OBS_BUILD_FAIL" and
"OBS_BUILD_UNCHANGED", we will skip the "OBS_BUILD_UNCHANGED" now.

Fixes: #2163

Change-Id: I54ca3b5c0a29c0c6dd7d010a75e3f9097f6d2da6
Signed-off-by: gaoxuesx <xuesongx.gao@intel.com>
Set submission status to failed.

When one package or one image built failed, we set
submission's status and build group's status both to
failed.

Also add tests for those cases.

Change-Id: If632a5a0ff4c252676acef821d2639eabce2b943
Fixes: #2157
Modify the Image Package build unicode method

Make the unicode string more clear.

Change-Id: I7411feb5e7210cdd2c58da3666d98e742e216799
Signed-off-by: gaoxuesx <xuesongx.gao@intel.com>
Refactor test_status_changing.py

Move common code into setUp().

Add method package_built(), image_building(), image_created() to
send events for testing. It makes case code more readable.

Change-Id: Ic47ac3cb62940166eefc0ed694bca470b9b04bd2
Fix building status bug.

If a package failed at first time and succeed by rebuiling, status
must set to succeed rather than failed.

Also add many test cases to verify status changing.

Change-Id: Ie0eb0b7dfff891d48ac67394a2322fb61bed5092
Fixes: #2157