Merge pull request #537 in CASA/casa6 from CAS-13777 to master
* commit '92130a29383d888994140690f779efb81155ae9d':
Revert back the changes of test_exportuvfits to those of master to avoid conflicts with the new tests developed in CAS-12228. The tests in CAS-12228 already fix the tearDown problems.
Cleanup the tearDown and also remove casa5 code in previous commit
Fixed the tearDown to only remove the files copied or created by the test script.
Fixed the tearDown of the test script to avoid deleting files that were not copied or created by the test script.
Revert back the changes of test_exportuvfits to those of master to avoid conflicts with the new tests developed in CAS-12228. The tests in CAS-12228 already fix the tearDown problems.