Add a distclean on each reconfigure

Project: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/commit/bf84255a
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/tree/bf84255a
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/diff/bf84255a

Branch: refs/heads/master
Commit: bf84255a6c2c78cf228a83e3e730be1b4fa2a3df
Parents: 43abdb0
Author: Thomas Jackson <[email protected]>
Authored: Wed Jan 14 16:31:29 2015 -0800
Committer: Thomas Jackson <[email protected]>
Committed: Wed Jan 14 16:46:57 2015 -0800

----------------------------------------------------------------------
 tsqa/environment.py | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver-qa/blob/bf84255a/tsqa/environment.py
----------------------------------------------------------------------
diff --git a/tsqa/environment.py b/tsqa/environment.py
index 3deb224..34e0984 100644
--- a/tsqa/environment.py
+++ b/tsqa/environment.py
@@ -59,6 +59,10 @@ class EnvironmentFactory(object):
             kwargs['stderr'] = sys.stderr.fileno()
 
         # run autoreconf in source tree
+        try:
+            tsqa.utils.run_sync_command(['make', 'distclean'], **kwargs)
+        except:
+            pass
         tsqa.utils.run_sync_command(['autoreconf', '-if'], **kwargs)
 
     @property

Reply via email to