Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/dev/md cleanup server after use
details: https://anonhg.NetBSD.org/src/rev/73bd4811aff4
branches: trunk
changeset: 759180:73bd4811aff4
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Nov 30 22:15:02 2010 +0000
description:
cleanup server after use
(XXX: need better way to reboot it)
diffstat:
tests/dev/md/t_md.sh | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r cfadb574334b -r 73bd4811aff4 tests/dev/md/t_md.sh
--- a/tests/dev/md/t_md.sh Tue Nov 30 22:14:02 2010 +0000
+++ b/tests/dev/md/t_md.sh Tue Nov 30 22:15:02 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_md.sh,v 1.2 2010/11/30 14:29:05 pooka Exp $
+# $NetBSD: t_md.sh,v 1.3 2010/11/30 22:15:02 pooka Exp $
#
# Copyright (c) 2010 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -25,8 +25,8 @@
# POSSIBILITY OF SUCH DAMAGE.
#
-atf_test_case basic
-basic()
+atf_test_case basic cleanup
+basic_head()
{
atf_set "descr" "Check that md can be created, read and written"
@@ -47,6 +47,13 @@
atf_check -s exit:0 -e ignore -o file:testfile dd if=/bin/ls count=10
}
+basic_cleanup()
+{
+
+ export RUMP_SERVER=unix://commsock
+ $(atf_get_srcdir)/../../rump/rumpkern/h_client/h_reboot
+}
+
atf_init_test_cases()
{
Home |
Main Index |
Thread Index |
Old Index