lttng / lttng-analyses

Analyses scripts for LTTng kernel and user-space traces (official repository)
Other
100 stars 32 forks source link

Tests fail when LC_ALL=C #56

Closed mjeanson closed 8 years ago

mjeanson commented 8 years ago

Tests fail when LC_ALL=C

$ python3 setup.py test  
running test
running egg_info
writing entry points to lttnganalyses.egg-info/entry_points.txt
writing requirements to lttnganalyses.egg-info/requires.txt
writing top-level names to lttnganalyses.egg-info/top_level.txt
writing dependency_links to lttnganalyses.egg-info/dependency_links.txt
writing lttnganalyses.egg-info/PKG-INFO
reading manifest file 'lttnganalyses.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'lttnganalyses.egg-info/SOURCES.txt'
running build_ext
test_parse_date_invalid (tests.common.test_parse_utils.TestParseDate) ... ok
test_parse_full_date (tests.common.test_parse_utils.TestParseDate) ... ok
test_parse_full_date_nsec (tests.common.test_parse_utils.TestParseDate) ... ok
test_parse_time (tests.common.test_parse_utils.TestParseDate) ... ok
test_parse_time_nsec (tests.common.test_parse_utils.TestParseDate) ... ok
test_parse_timestamp (tests.common.test_parse_utils.TestParseDate) ... ok
test_garbage (tests.common.test_parse_utils.TestParseDuration) ... ok
test_invalid_units (tests.common.test_parse_utils.TestParseDuration) ... ok
test_no_units (tests.common.test_parse_utils.TestParseDuration) ... ok
test_valid_units (tests.common.test_parse_utils.TestParseDuration) ... ok
test_binary_units (tests.common.test_parse_utils.TestParseSize) ... ok
test_coreutils_units (tests.common.test_parse_utils.TestParseSize) ... ok
test_garbage (tests.common.test_parse_utils.TestParseSize) ... ok
test_invalid_units (tests.common.test_parse_utils.TestParseSize) ... ok
test_no_units (tests.common.test_parse_utils.TestParseSize) ... ok
test_si_units (tests.common.test_parse_utils.TestParseSize) ... ok
test_invalid_date (tests.common.test_parse_utils.TestParseTraceCollectionDate) ... ok
test_multi_day_date (tests.common.test_parse_utils.TestParseTraceCollectionDate) ... ok
test_multi_day_time (tests.common.test_parse_utils.TestParseTraceCollectionDate) ... ok
test_single_day_date (tests.common.test_parse_utils.TestParseTraceCollectionDate) ... ok
test_single_day_time (tests.common.test_parse_utils.TestParseTraceCollectionDate) ... ok
test_invalid_format (tests.common.test_parse_utils.TestParseTraceCollectionTimeRange) ... ok
test_multi_day_date (tests.common.test_parse_utils.TestParseTraceCollectionTimeRange) ... ok
test_multi_day_time (tests.common.test_parse_utils.TestParseTraceCollectionTimeRange) ... ok
test_single_day_date (tests.common.test_parse_utils.TestParseTraceCollectionTimeRange) ... ok
test_single_day_time (tests.common.test_parse_utils.TestParseTraceCollectionTimeRange) ... ok
test_integer (tests.common.test_format_utils.TestFormatIpv4) ... ok
test_sequence (tests.common.test_format_utils.TestFormatIpv4) ... ok
test_with_port (tests.common.test_format_utils.TestFormatIpv4) ... ok
test_empty (tests.common.test_format_utils.TestFormatPrioList) ... ok
test_multiple_prios (tests.common.test_format_utils.TestFormatPrioList) ... ok
test_one_prio (tests.common.test_format_utils.TestFormatPrioList) ... ok
test_repeated_prio (tests.common.test_format_utils.TestFormatPrioList) ... ok
test_repeated_prios (tests.common.test_format_utils.TestFormatPrioList) ... ok
test_huge (tests.common.test_format_utils.TestFormatSize) ... ok
test_negative (tests.common.test_format_utils.TestFormatSize) ... ok
test_reasonable (tests.common.test_format_utils.TestFormatSize) ... ok
test_zero (tests.common.test_format_utils.TestFormatSize) ... ok
test_print_date (tests.common.test_format_utils.TestFormatTimeRange) ... ok
test_time_only (tests.common.test_format_utils.TestFormatTimeRange) ... ok
test_date (tests.common.test_format_utils.TestFormatTimestamp) ... ok
test_negative (tests.common.test_format_utils.TestFormatTimestamp) ... ok
test_time (tests.common.test_format_utils.TestFormatTimestamp) ... ok
test_not_syscall (tests.common.test_trace_utils.TestGetSyscallName) ... ok
test_sys (tests.common.test_trace_utils.TestGetSyscallName) ... ok
test_syscall_entry (tests.common.test_trace_utils.TestGetSyscallName) ... ok
test_multi_day (tests.common.test_trace_utils.TestGetTraceCollectionDate) ... ok
test_single_day (tests.common.test_trace_utils.TestGetTraceCollectionDate) ... ok
test_different_day (tests.common.test_trace_utils.TestIsMultiDayTraceCollection) ... ok
test_same_day (tests.common.test_trace_utils.TestIsMultiDayTraceCollection) ... ok
test_iolatencytop (tests.integration.test_io.IoTest) ... ok
test_iousagetop (tests.integration.test_io.IoTest) ... ERROR
test_cputop (tests.integration.test_cputop.CpuTest) ... ERROR
test_irqlog (tests.integration.test_irq.IrqTest) ... ok
test_irqstats (tests.integration.test_irq.IrqTest) ... ok
test_disable_intersect (tests.integration.test_intersect.IntersectTest) ... ok
test_no_intersection (tests.integration.test_intersect.IntersectTest) ... skipped 'not supported by Babeltrace < 1.4.0'

======================================================================
ERROR: test_iousagetop (tests.integration.test_io.IoTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mjeanson/Git/Debian/lttnganalyses/tests/integration/test_io.py", line 69, in test_iousagetop
    expected = self.get_expected_output(test_name)
  File "/home/mjeanson/Git/Debian/lttnganalyses/tests/integration/analysis_test.py", line 61, in get_expected_output
    return expected_file.read()
  File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 303: ordinal not in range(128)

======================================================================
ERROR: test_cputop (tests.integration.test_cputop.CpuTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mjeanson/Git/Debian/lttnganalyses/tests/integration/test_cputop.py", line 45, in test_cputop
    expected = self.get_expected_output(test_name)
  File "/home/mjeanson/Git/Debian/lttnganalyses/tests/integration/analysis_test.py", line 61, in get_expected_output
    return expected_file.read()
  File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 297: ordinal not in range(128)

----------------------------------------------------------------------
Ran 57 tests in 0.540s

FAILED (errors=2, skipped=1)