[test] Fix CommitTemplateConfigTest for Windows
Ensure that this test works on Windows. Bug: 550111 Change-Id: Ib3ca803f4d9521a5f2a0e1344bfbc0d2beccc9cc Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
This commit is contained in:
parent
fbe7f9c291
commit
961d5e6875
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2021 SAP SE and others
|
* Copyright (C) 2021, 2022 SAP SE and others
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the Eclipse Distribution License v. 1.0 which is available at
|
* terms of the Eclipse Distribution License v. 1.0 which is available at
|
||||||
|
@ -47,8 +47,7 @@ public void testCommitTemplatePathInHomeDirecory()
|
||||||
".tmp", new File(homeDir));
|
".tmp", new File(homeDir));
|
||||||
tempFileInHomeDirectory.deleteOnExit();
|
tempFileInHomeDirectory.deleteOnExit();
|
||||||
JGitTestUtil.write(tempFileInHomeDirectory, templateContent);
|
JGitTestUtil.write(tempFileInHomeDirectory, templateContent);
|
||||||
String expectedTemplatePath = tempFileInHomeDirectory.getPath()
|
String expectedTemplatePath = "~/" + tempFileInHomeDirectory.getName();
|
||||||
.replace(homeDir, "~");
|
|
||||||
config = ConfigTest
|
config = ConfigTest
|
||||||
.parse("[commit]\n\ttemplate = " + expectedTemplatePath + "\n");
|
.parse("[commit]\n\ttemplate = " + expectedTemplatePath + "\n");
|
||||||
String templatePath = config.get(CommitConfig.KEY)
|
String templatePath = config.get(CommitConfig.KEY)
|
||||||
|
|
Loading…
Reference in New Issue