Added the FlashComponent in to GUI 2
Change-Id: I80923759cc70dbd902e478a5ad995621543d29f1
diff --git a/web/gui2/BUCK b/web/gui2/BUCK
index f566f10..c875c58 100644
--- a/web/gui2/BUCK
+++ b/web/gui2/BUCK
@@ -86,8 +86,14 @@
# Install either chrome or chromium-browser on the machine
+ 'ng test --preserve-symlinks --karma-config=karma.conflocal.js --code-coverage --browsers=ChromeHeadless --watch=false >> "$OUT" 2>&1 || '
+ 'if [ $? -eq 0 ]; then echo "Successfully ran tests";'
- + 'else echo "Error running \'ng test\' on \'//web/gui2:onos-web-gui2-test\'. See $ORIGOUTPUT/onos-web-gui2-test-log.txt for more details" >&2;'
- + 'tail -n 100 $ORIGOUTPUT/onos-web-gui2-test-log.txt >&2;'
+ + 'else '
+ + ' if grep -q CHROME_BIN $ORIGOUTPUT/onos-web-gui2-test-log.txt ; then '
+ + ' echo "Warning: Step onos-web-gui2-test (test of Angular code) skipped because no binary for ChromeHeadless browser was found on your platform." >&2;'
+ + ' echo "Install Google Chrome or Chromium Browser to allow this step to run." >&2;'
+ + ' else '
+ + ' echo "Error running \'ng test\' on \'//web/gui2:onos-web-gui2-test\'. See $ORIGOUTPUT/onos-web-gui2-test-log.txt for more details" >&2;'
+ + ' tail -n 100 $ORIGOUTPUT/onos-web-gui2-test-log.txt >&2;'
+ + ' fi;'
+ 'fi;',
out = 'onos-web-gui2-test-log.txt',
)