`xwfb-run` fails with error removing directory
Trying to use xwfb-run
for Alexandria package in Fedora [1], execution of the test suite with Mutter fails:
$ xwfb-run -c mutter -e error.log -- rake spec:unit
/usr/bin/ruby -rbundler/setup -rsimplecov -Ilib -w -I/usr/share/gems/gems/rspec-support-3.13.1/lib:/usr/share/gems/gems/rspec-core-3.13.0/lib /usr/share/gems/gems/rspec-core-3.13.0/exe/rspec --pattern spec/alexandria/\*\*/\*_spec.rb
*****...*................................................**.........Error removing directory /tmp/tmpjcjec9e4: [Errno 39] Directory not empty: '/tmp/tmpjcjec9e4'
This is the content of the directory in question:
$ find ./tmp/tmpjcjec9e4/
./tmp/tmpjcjec9e4/
./tmp/tmpjcjec9e4/dbus-1
./tmp/tmpjcjec9e4/dbus-1/services
It seems that these are some residues of dbus-run-session
command.
Using Weston, it works just fine:
+ xwfb-run -c weston -e error.log -- rake spec:unit
/usr/bin/ruby -rbundler/setup -rsimplecov -Ilib -w -I/usr/share/gems/gems/rspec-support-3.13.1/lib:/usr/share/gems/gems/rspec-core-3.13.0/lib /usr/share/gems/gems/rspec-core-3.13.0/exe/rspec --pattern spec/alexandria/\*\*/\*_spec.rb
*****...*................................................**.........................................................
Pending: (Failures listed here are expected and do not affect your suite's status)
1) Alexandria::BookProviders::BLProvider works
# Temporarily skipped with xit
# ./spec/alexandria/book_providers/bl_provider_spec.rb:10
2) Alexandria::BookProviders::LOCProvider works for a book with ASCII title
# Temporarily skipped with xit
# ./spec/alexandria/book_providers/loc_provider_spec.rb:10
3) Alexandria::BookProviders::LOCProvider works for a book with a title with non-ASCII letters
# Temporarily skipped with xit
# ./spec/alexandria/book_providers/loc_provider_spec.rb:14
4) Alexandria::BookProviders::SBNProvider works
# Temporarily skipped with xit
# ./spec/alexandria/book_providers/sbn_provider_spec.rb:10
5) Alexandria::BookProviders::ThaliaProvider works when searching by ISBN
# Temporarily skipped with xit
# ./spec/alexandria/book_providers/thalia_provider_spec.rb:110
6) Alexandria::BookProviders should be less clever
# Not yet implemented
# ./spec/alexandria/book_providers_spec.rb:10
7) Alexandria::Scanners::CueCat decodes ISSN barcodes
# Test scan ISSN
# ./spec/alexandria/scanners/cue_cat_spec.rb:45
8) Alexandria::Scanners::CueCat decodes UPC barcodes
# Test scan UPC
# ./spec/alexandria/scanners/cue_cat_spec.rb:49
Finished in 1.68 seconds (files took 2.15 seconds to load)
116 examples, 0 failures, 8 pending