Skip to content

Commit

Permalink
Add nr option to small test
Browse files Browse the repository at this point in the history
  • Loading branch information
smcmahon committed Jul 7, 2018
1 parent 7959e74 commit a6b98fa
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions tests/small.txt
Expand Up @@ -40,14 +40,17 @@ Vagrant provision -- unless contraindicated.

Reboot the box. We only care about what survives a restart.

>>> print >> sys.stderr, "Poweroff %s" % box
>>> p = subprocess.call('vagrant ssh %s -c "sudo poweroff"' % box, shell=True)
>>> if skip_restart:
... print >> sys.stderr, "Skipping restart"
... else:
... print >> sys.stderr, "Poweroff %s" % box
... p = subprocess.call('vagrant ssh %s -c "sudo poweroff"' % box, shell=True)
... time.sleep(10)
... print >> sys.stderr, "Bringing %s back up" % box
... run("vagrant up %s --no-provision" % box)
... print >> sys.stderr, "Waiting for services to start..."
... time.sleep(90)

>>> time.sleep(20)
>>> print >> sys.stderr, "Bringing %s back up" % box
>>> run("vagrant up %s --no-provision" % box)
>>> print >> sys.stderr, "Waiting for services to start..."
>>> time.sleep(60)

And, now run tests against the box.

Expand Down

0 comments on commit a6b98fa

Please sign in to comment.