blob: f2ccb402b700f8a325e3ffe0ad21263d651523dd [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package main
import (
"testing"
"go.fuchsia.dev/fuchsia/src/tests/reboot/reboottest"
)
// Test that "dm reboot-recovery" will reboot the system.
//
// On a real system, "reboot-recovery" will reboot to the recovery partition.
// However, in this test environment we have no recovery partition so the
// system will end up back where it started.
func TestDmRebootRecovery(t *testing.T) {
reboottest.RebootWithCommand(t, "dm reboot-recovery", reboottest.CleanReboot, reboottest.RebootRecovery, reboottest.NoCrash)
}