Closed josteinaj closed 7 years ago
Which branch?
Could you maybe extend the pipeline-braille-scripts/epub3-to-epub3/src/test/xprocspec/test.xprocspec
test to demonstrate this bug?
The nlb branch. I'll make a test.
I've added a test here, but I'm unable to run it:
https://github.com/nlbdev/pipeline/compare/nlb...issue-511
Getting this error:
➜ pipeline git:(nlb) ✗ make SKIP_GROUP_EVAL_TARGET=true EVAL=eval check-modules/braille/pipeline-braille-scripts/epub3-to-epub3
[INFO] ------------------------------------------------------------------------
[INFO] Building DAISY Pipeline 2 Braille Module :: epub3-to-epub3 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] Bundle org.daisy.pipeline.modules.braille:epub3-to-epub3:bundle:1.0.0-SNAPSHOT : Unused Private-Package instructions, no such package(s) on the class path: [!*]
[ERROR] java.lang.RuntimeException: Could not find a Transform for query: (input:html)(input:css)(output:html)(output:css)(output:braille)(translator:liblouis)(locale:en)
[ERROR] err:XC0012:XC0012
[ERROR] err:XC0012:XC0012
[ERROR] XE0001:XProc error err:XE0001
[ERROR] XE0001:XProc error err:XE0001
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project epub3-to-epub3: There are test failures.
[ERROR]
[ERROR] Please refer to /home/jostein/daisy-pipeline/pipeline/modules/braille/pipeline-braille-scripts/epub3-to-epub3/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
modules/braille/pipeline-braille-scripts/epub3-to-epub3/.deps.mk:6: recipe for target 'modules/braille/pipeline-braille-scripts/epub3-to-epub3/.test' failed
make: *** [modules/braille/pipeline-braille-scripts/epub3-to-epub3/.test] Error 1
Thanks! I'll try to make it run.
Apparently commit d229f0649553fd8d0d7a8073b2da39982a597e8b broke something. I committed a fix and now the test passes.
I think your issue is in NLBTranslator.java. It is used where in the epub3-to-epub3 test LiblouisCSSBlockTransform is being used.
I have a fix underway but haven't tested properly. I'll push it anyway because I need to quit today.
Pushed another small fix. I think it should work now.
I'm gonna close this issue because it turned out to be a bug in the NLB module.
Ok, thanks for the help.
For instance: