Testsuite: add/fix cleanup for certain tests
authorThomas Miedema <thomasmiedema@gmail.com>
Thu, 28 May 2015 20:00:00 +0000 (22:00 +0200)
committerThomas Miedema <thomasmiedema@gmail.com>
Thu, 4 Jun 2015 21:58:29 +0000 (23:58 +0200)
commite340f6eccc9d6d8f0a11c56c312570060c245946
treea94a473f864e6483fa8d19ef7202295a5628e047
parentd0063e8975672714a6ae33f7e8175421c6b5d5c5
Testsuite: add/fix cleanup for certain tests

* extra_clean argument should be a list
  Add an assert to prevent regressions.

* properly clean package conf direcories
  They are directories now, which was causing problems.

* properly clean write_interface_* tests
  We were getting these errors:

  [Errno 21] Is a directory: './driver/write_interface_oneshot'
  [Errno 39] Directory not empty: './driver/write_interface_oneshot'
  [Errno 21] Is a directory: './driver/write_interface_make'
  [Errno 39] Directory not empty: './driver/write_interface_make'

* outputdir() is better than -outputdir, as it knows how to (pre)clean
  itself.
testsuite/driver/testlib.py
testsuite/tests/driver/Makefile
testsuite/tests/driver/all.T
testsuite/tests/generics/T5462No1.stderr
testsuite/tests/generics/all.T
testsuite/tests/ghci/linking/all.T
testsuite/tests/ghci/scripts/all.T
testsuite/tests/parser/unicode/all.T