#!/usr/bin/env python
#
# Copyright 2017 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.


"""Reboot a Swarming bot."""


import os
import sys


if sys.platform == 'win32':
    os.system('shutdown /r /t 0')
else:
    os.system('sudo reboot')

Add Reboot script for run_on_swarming_bots
Add Reboot script for run_on_swarming_bots

Change-Id: I01c72ef2157660e5d7f3c5d47a9b30fa78054e9f
Reviewed-on: https://skia-review.googlesource.com/135381
Auto-Submit: Ben Wagner <3ef7217be91069877d94f7907ce5479000772cd3@google.com>
Commit-Queue: Kevin Lubick <7cdab2cfab351f23814786ba39716e90eed69047@google.com>
Reviewed-by: Kevin Lubick <7cdab2cfab351f23814786ba39716e90eed69047@google.com>
