Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3436

misc. cross test issues with UTF-8 path names

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.0
    • Component/s: Test Suite
    • Labels:
      None
    • Environment:

      Python 2.x on openSUSE
      working copy consists of a path with some non-ASCII characters ( like "Arbeitsfläche")

    • Patch Info:
      Patch Available

      Description

      /usr/bin/python test/test.py -s --server cpp,c_glib,java,csharp,py,py3,rb,hs,perl,php,go,nodejs,dart, --client cpp,c_glib,java,csharp,py,py3,rb,hs,perl,php,go,nodejs,dart,
      Apache Thrift - Integration Test Suite
      Wed Nov 18 16:46:50 2015
      ======================================================================
      server-client:     protocol:    transport:               result:
      Traceback (most recent call last):
        File "test/test.py", line 123, in <module>
          sys.exit(main(sys.argv[1:]))
        File "test/test.py", line 119, in main
          res = run_tests(server_match, client_match, options.jobs, options.skip_known_failures)
        File "test/test.py", line 63, in run_tests
          for r in [dispatcher.dispatch(test) for test in tests]:
        File "/home/jens/Arbeitsfläche/Thrift/test/crossrunner/run.py", line 296, in dispatch
          index = self._report.add_test(test)
        File "/home/jens/Arbeitsfläche/Thrift/test/crossrunner/report.py", line 367, in add_test
          test = TestEntry(self.testdir, **test_dict)
        File "/home/jens/Arbeitsfläche/Thrift/test/crossrunner/test.py", line 97, in __init__
          self.server = TestProgram('server', **self._fix_workdir(merge_dict(self._config, server)))
        File "/home/jens/Arbeitsfläche/Thrift/test/crossrunner/test.py", line 116, in _fix_workdir
          path = os.path.realpath(os.path.join(self.testdir, path))
        File "/usr/lib/python2.7/posixpath.py", line 80, in join
          path += '/' + b
      UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 20: ordinal not in range(128)
      Makefile:1043: recipe for target 'cross' failed
      make: *** [cross] Error 1
      

        Attachments

          Activity

            People

            • Assignee:
              jensg Jens Geyer
              Reporter:
              jensg Jens Geyer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: