diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-05-18 14:13:15 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-29 11:59:46 +0100 |
commit | 356809ff4019eaef19e1f768db5b77fbcdd482e4 (patch) | |
tree | 40c5435e83ccf2e7f2fc3c68f8c7779eb62ef507 /bitbake/bin/toaster | |
parent | b3189f307157d0369c019850ab4bdcbec9320006 (diff) | |
download | poky-356809ff4019eaef19e1f768db5b77fbcdd482e4.tar.gz |
bitbake: toaster: enable no browser start
We enable a "nobrowser" parameter that inhibits
the launch of a browser when toaster starts.
This is useful for integration with automated startup scripts
and enables headless testing.
(Bitbake rev: ccf7f39d470fe6d743b58b1140c19cb8da31ecaf)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin/toaster')
-rwxr-xr-x | bitbake/bin/toaster | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster index 93abcfad3b..ee199374e3 100755 --- a/bitbake/bin/toaster +++ b/bitbake/bin/toaster | |||
@@ -154,6 +154,7 @@ NOTOASTERUI=0 | |||
154 | WEBSERVER=1 | 154 | WEBSERVER=1 |
155 | TOASTER_BRBE="" | 155 | TOASTER_BRBE="" |
156 | WEB_PORT="8000" | 156 | WEB_PORT="8000" |
157 | NOBROWSER=0 | ||
157 | 158 | ||
158 | for param in $*; do | 159 | for param in $*; do |
159 | case $param in | 160 | case $param in |
@@ -163,6 +164,9 @@ for param in $*; do | |||
163 | noweb ) | 164 | noweb ) |
164 | WEBSERVER=0 | 165 | WEBSERVER=0 |
165 | ;; | 166 | ;; |
167 | nobrowser ) | ||
168 | NOBROWSER=1 | ||
169 | ;; | ||
166 | brbe=* ) | 170 | brbe=* ) |
167 | TOASTER_BRBE=$'\n'"TOASTER_BRBE=\""${param#*=}"\"" | 171 | TOASTER_BRBE=$'\n'"TOASTER_BRBE=\""${param#*=}"\"" |
168 | ;; | 172 | ;; |
@@ -227,7 +231,7 @@ if [ `basename \"$0\"` = `basename \"${SRCFILE}\"` ]; then | |||
227 | cleanup | 231 | cleanup |
228 | exit 1 | 232 | exit 1 |
229 | fi | 233 | fi |
230 | if [ $WEBSERVER -gt 0 ]; then | 234 | if [ $WEBSERVER -gt 0 ] && [ $NOBROWSER -eq 0 ] ; then |
231 | echo "Starting browser..." | 235 | echo "Starting browser..." |
232 | xdg-open http://127.0.0.1:$WEB_PORT/ >/dev/null 2>&1 & | 236 | xdg-open http://127.0.0.1:$WEB_PORT/ >/dev/null 2>&1 & |
233 | fi | 237 | fi |