From: Serge Rehbinder Date: Wed, 16 Nov 2016 08:22:05 +0000 (+0100) Subject: sat jobs: remove remote sat before copy it X-Git-Tag: 5.0.0a1~47 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3754295458a3a229be378e758e46e07cbeeb1504;p=tools%2Fsat.git sat jobs: remove remote sat before copy it --- diff --git a/commands/jobs.py b/commands/jobs.py index 258f530..d3bb719 100644 --- a/commands/jobs.py +++ b/commands/jobs.py @@ -780,6 +780,15 @@ class Jobs(object): # Copy salomeTools to the remote machine if machine.successfully_connected(self.logger): + step = _("Remove SAT") + self.logger.write('\r%s%s%s' % (begin_line, endline, 20 * " "),3) + self.logger.write('\r%s%s%s' % (begin_line, endline, step), 3) + (__, out_dist, __) = machine.exec_command( + "rm -rf %s" % machine.sat_path, + self.logger) + out_dist.read() + + self.logger.flush() step = _("Copy SAT") self.logger.write('\r%s%s%s' % (begin_line, endline, 20 * " "),3) self.logger.write('\r%s%s%s' % (begin_line, endline, step), 3)