Running smolder_test fails with errors of the type:
t/aaa_dbcount..........failed to open file: tmp/dbcount.txt. Error was: Permission denied at t/aaa_dbcount.t line 12.
This is running the tests using "sudo bin/smolder_test". The archive was unpacked by another user, and the tmp directory had the permissions 755 and was not writable for the smolder user. I fixed this by setting the permissions to 777. Also I had to chown the data/smolder.sqlite to be owned by the smolder user and the data directory also to 777.
After that, only one test failure remained:
ok 1 - use Smolder::DB::Preference;
Can't insert new Smolder::DB::Preference: DBD::SQLite::st execute failed: unable to open database file(1) at dbdimp.c line 398 [for Statement "INSERT INTO preference (email_type, email_freq)
VALUES (?, ?)
"] at /mnt/redhat-root/home/slavenr/work2/smolder/lib/DBIx/ContextualFetch.pm line 52.
at t/db-pref.t line 17
Even when looking at the test run with strace I don't have a clue what is causing the failure here.
Log in to post a comment.