Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30116

Fix CommandLineExecutorService test AspellTester

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 11.4
    • Fix Version/s: None
    • Component/s: Convert

      Description

      The test AspellTester currently hangs locally, because the aspell commandline configuration for this test is not valid anymore.

      The test is skipped on CI because the aspell library is not available on slaves, and the test is skipped in such cases.

      Overall, the ccommandline should be fixed. Note the following quick change to the commandline makes the test pass locally:

      --- a/modules/core/nuxeo-platform-commandline-executor/src/test/resources/OSGI-INF/commandline-aspell-test-contribs.xml
      +++ b/modules/core/nuxeo-platform-commandline-executor/src/test/resources/OSGI-INF/commandline-aspell-test-contribs.xml
      @@ -5,9 +5,9 @@
           point="command">
       
           <command name="aspell" enabled="true">
      -      <commandLine>/usr/bin/aspell</commandLine>
      +      <commandLine>cat</commandLine>
             <winCommand>C:\Program Files\Aspell\bin\aspell.exe</winCommand>
      -      <parameterString>-a --lang=#{lang} --encoding=#{encoding} -H --rem-sgml-check=alt &lt; #{textFile}</parameterString>
      +      <parameterString>#{textFile} | /usr/bin/aspell -a --lang=#{lang} --encoding=#{encoding} -H --rem-sgml-check=alt</parameterString>
             <installationDirective>You need to install Aspell in order to use this feature. Please see www.aspell.org.</installationDirective>
           </command>
      
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: