From 3754295458a3a229be378e758e46e07cbeeb1504 Mon Sep 17 00:00:00 2001 From: Serge Rehbinder Date: Wed, 16 Nov 2016 09:22:05 +0100 Subject: [PATCH] sat jobs: remove remote sat before copy it --- commands/jobs.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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) -- 2.39.2