glejeune / Ruby-Graphviz

[MIRROR] Ruby interface to the GraphViz graphing tool
https://gitlab.com/glejeune/ruby-graphviz
Other
609 stars 116 forks source link

tests are failing to run in a chroot environment #58

Closed pravi closed 12 years ago

pravi commented 12 years ago

Even though the dot command succeeds, tests treat pango warning as error and makes the tests to fail. I thin pango warning should not be treated as an error. Probably it is just doing a pattern match for "error" keyword.

64) Failure: test_sample69(GraphVizTest) [./test/test_examples.rb:125:in assert_sample_file_has_no_output' ./test/test_examples.rb:97:intest_sample69']: got exception on sample69.rb: Error from "/usr/bin/dot" -q1 -Tpng -o./test/output/sample69.rb.png /tmp/graphviz.rb20121026-14167-gb2xpp-0:

(process:14361): Pango-WARNING **: error opening config file '/root/.pangorc': Permission denied

.

is not true. Ref http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676393#24
pravi commented 12 years ago

This can be fixed by passing G_HOME=/ when running tests in a chroot. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570313 for more details. Closing.