nvdimm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [ndctl PATCH] ndctl, test/monitor: fix conf_file in test_conf_file
@ 2021-09-14  2:41 QI Fuli
  0 siblings, 0 replies; only message in thread
From: QI Fuli @ 2021-09-14  2:41 UTC (permalink / raw)
  To: nvdimm; +Cc: QI Fuli

From: QI Fuli <qi.fuli@fujitsu.com>

Change conf_file from old config file format to new global config file
format.

Signed-off-by: QI Fuli <qi.fuli@fujitsu.com>
---
 test/monitor.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/monitor.sh b/test/monitor.sh
index 28c5541..c015c11 100755
--- a/test/monitor.sh
+++ b/test/monitor.sh
@@ -126,7 +126,7 @@ test_conf_file()
 {
 	monitor_dimms=$(get_monitor_dimm)
 	conf_file=$(mktemp)
-	echo "dimm = $monitor_dimms" > $conf_file
+	echo -e "[monitor]\ndimm = $monitor_dimms" > $conf_file
 	start_monitor "-c $conf_file"
 	call_notify
 	check_result "$monitor_dimms"
-- 
2.31.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-14  2:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-14  2:41 [ndctl PATCH] ndctl, test/monitor: fix conf_file in test_conf_file QI Fuli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).