I am trying to run xvfb-run -s '-screen 0 1024x768x24' pub run test -p content-shellin Ubuntu Trusty.
The dart and content wrapper are set as follows:
curl https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --import --no-default-keyring --keyring /etc/apt/trusted.gpg.d/google.gpg
curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list
apt-get update
apt-get install --assume-yes dart=1.15.0-1
curl https://storage.googleapis.com/dart-archive/channels/stable/release/1.15.0/dartium/dartium-linux-x64-release.zip> /dartium-linux-x64-release.zip && \
unzip /dartium-linux-x64-release.zip -d /opt/google && \
mv /opt/google/dartium-* /opt/google/dartium && \
chmod -R 755 /opt/google/dartium
curl http://storage.googleapis.com/dart-archive/channels/stable/release/1.15.0/dartium/content_shell-linux-x64-release.zip > /content_shell-linux-x64-release.zip && \
unzip /content_shell-linux-x64-release.zip -d /opt/google && \
mv /opt/google/drt-* /opt/google/content_shell && \
chmod -R 755 /opt/google/content_shell
c is /opt/google/content_shellincluded in my PATH variable.
# which content_shell
/opt/google/content_shell/content_shell
However, when I run this trial try:
# xvfb-run -s '-screen 0 1024x768x24' pub run test -p content-shell
I get errors similar to:
Failed to run Content Shell: Content Shell failed with exit code 1..
dart:async Future.Future.error
package:async/src/result/error.dart 30 ErrorResult.asFuture
package:async/src/result.dart 93 Result.release.<fn>
===== asynchronous gap ===========================
dart:async _Future.then
package:async/src/result.dart 93 Result.release
I no longer see the information. I'm not sure if this should be related, although it does look ominous:
# content_shell --version
[1114:1114:0617/150811:9471556647:ERROR:browser_main_loop.cc(189)] Running without the SUID sandbox! See https:
[1116:1116:0100/000000:9471568304:ERROR:zygote_linux.cc(612)] write: Broken pipe
My questions are: how can I configure the content wrapper to install correctly so that it runs tests with pub run test -p content-shell?
source
share