Revert "Add workaround to fix timeout of salt-models tests"
This reverts commit bae95dd2efeb754f4c61c8eb61f8c22dee6c19de.
Change-Id: I4c9d9aa1c0520db7295509eab8105f58b246c308
diff --git a/src/com/mirantis/mk/SaltModelTesting.groovy b/src/com/mirantis/mk/SaltModelTesting.groovy
index 3218917..d25d79b 100644
--- a/src/com/mirantis/mk/SaltModelTesting.groovy
+++ b/src/com/mirantis/mk/SaltModelTesting.groovy
@@ -79,11 +79,8 @@
sh("(pgrep salt-master | sed /\$\$/d | xargs --no-run-if-empty -I {} kill -9 {} || true) && pkill -9 salt-minion || true")
sh("service salt-master restart && service salt-minion restart && sleep 15")
}
- def lockFile = "/var/lock/salt_master_running"
- // Dirty hack to make sure salt-master service will run permanently
- sh("timeout ${testTimeout} bash -c 'source /srv/salt/scripts/bootstrap.sh; cd /srv/salt/scripts && \
- source_local_envs && touch ${lockFile} && (((saltmaster_init || exit 1); rm ${lockFile}) & \
- (while [ -f ${lockFile} ] ; do service salt-master start && sleep 60 ; done))'")
+
+ sh("timeout ${testTimeout} bash -c 'source /srv/salt/scripts/bootstrap.sh; cd /srv/salt/scripts && source_local_envs && saltmaster_init'")
if (!legacyTestingMode) {
sh("bash -c 'source /srv/salt/scripts/bootstrap.sh; cd /srv/salt/scripts && verify_salt_minions'")