diff options
author | Bogdan Marinescu <bogdan.a.marinescu@intel.com> | 2012-10-11 14:45:07 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-24 21:13:06 +0100 |
commit | 6cc2f06d43fed2b3cdec84cb21bbc45742b2608a (patch) | |
tree | b19c1cf266afeacaf570c279bb45d5ab467f38a3 /bitbake/lib/bb/event.py | |
parent | d93898b2c530681362e42d1b0477fa593a625046 (diff) | |
download | poky-6cc2f06d43fed2b3cdec84cb21bbc45742b2608a.tar.gz |
bitbake: event/hob: Add a button for network tests in the proxy settings
This patch allows the user to check the network connectivity in
the "Proxy" page ("Settings" dialog) by adding a button which provides
this functionality. It also disables retrigerring sanity checks if the
proxy values are changed, since now the proxy checks are explicit.
Note that this patch depends on a patch in oe-core
("sanity.bbclass: trigger network tests explicitly"). It will
not work properly if the patch in oe-core is not merged.
[YOCTO #3026]
(Bitbake rev: cb1354d29c0be27aee57b9783c724457ef6725fb)
Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/event.py')
-rw-r--r-- | bitbake/lib/bb/event.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py index 1889d09e1d..e41455d273 100644 --- a/bitbake/lib/bb/event.py +++ b/bitbake/lib/bb/event.py | |||
@@ -566,3 +566,19 @@ class SanityCheckFailed(Event): | |||
566 | Event.__init__(self) | 566 | Event.__init__(self) |
567 | self._msg = msg | 567 | self._msg = msg |
568 | self._network_error = network_error | 568 | self._network_error = network_error |
569 | |||
570 | class NetworkTest(Event): | ||
571 | """ | ||
572 | Event to start network test | ||
573 | """ | ||
574 | |||
575 | class NetworkTestPassed(Event): | ||
576 | """ | ||
577 | Event to indicate network test has passed | ||
578 | """ | ||
579 | |||
580 | class NetworkTestFailed(Event): | ||
581 | """ | ||
582 | Event to indicate network test has failed | ||
583 | """ | ||
584 | |||