Skip to content
  • Gabor Greif's avatar
    Suppress duplicate .T files · 9a29b65b
    Gabor Greif authored
    As per http://stackoverflow.com/questions/7961363/removing-duplicates-in-lists
    use the set() function to zap duplicates from the obtained list of .T files.
    
    I am using
    $ python3 --version
    Python 3.5.1
    
    and strangely findTFiles() returns some .T files twice:
    
    -- BEFORE
    Found 376 .T files...
    ...
    
    ====> Scanning ../../libraries/array/tests/all.T
    ====> Scanning ../../libraries/array/tests/all.T
    *** framework failure for T2120(duplicate) There are multiple tests with this name
    *** framework failure for largeArray(duplicate) There are multiple tests with this name
    *** framework failure for array001(duplicate) There are multiple tests with this name
    *** framework failure for T9220(duplicate) There are multiple tests with this name
    *** framework failure for T229(duplicate) There are multiple tests with this name
    ...
    
    -- AFTER
    Found 365 .T files...
    ...
    ====> Scanning ../../libraries/array/tests/all.T
    ...
    
    Even more strangely 'find' begs to differ:
    $ find libraries testsuite/tests -name "*.T" | sort | uniq | wc -l
    368
    9a29b65b