Skip to content

Commit 724fa1f

Browse files
[projmgr] Rename *.cbuild-run.yml
1 parent 7f69181 commit 724fa1f

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

tools/projmgr/include/ProjMgrRunDebug.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ struct DebugSequencesType {
5656
*/
5757
struct RunDebugType {
5858
std::string solution;
59+
std::string solutionName;
5960
std::string targetType;
6061
std::string compiler;
6162
std::string board;

tools/projmgr/src/ProjMgrCbuildRun.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ void ProjMgrCbuildRun::SetDebugSequencesBlockNode(YAML::Node node, const std::ve
102102
//-- ProjMgrYamlEmitter::GenerateCbuildRun --------------------------------------------------------
103103
bool ProjMgrYamlEmitter::GenerateCbuildRun(const RunDebugType& debugRun) {
104104
// generate cbuild-run.yml
105-
const string& filename = m_outputDir + "/" + debugRun.targetType + ".cbuild-run.yml";
105+
const string& filename = m_outputDir + "/" + debugRun.solutionName + "+" +
106+
debugRun.targetType + ".cbuild-run.yml";
106107
YAML::Node rootNode;
107108
ProjMgrCbuildRun cbuildRun(rootNode[YAML_CBUILD_RUN], debugRun, m_outputDir);
108109
return WriteFile(rootNode, filename);

tools/projmgr/src/ProjMgrRunDebug.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ bool ProjMgrRunDebug::CollectSettings(const vector<ContextItem*>& contexts) {
2525

2626
// get target settings
2727
const auto& context = contexts.front();
28+
m_runDebug.solutionName = context->csolution->name;
2829
m_runDebug.solution = context->csolution->path;
2930
m_runDebug.targetType = context->type.target;
3031
m_runDebug.compiler = context->compiler;

tools/projmgr/test/data/TestRunDebug/ref/TestHW.cbuild-run.yml renamed to tools/projmgr/test/data/TestRunDebug/ref/run-debug+TestHW.cbuild-run.yml

File renamed without changes.

tools/projmgr/test/src/ProjMgrUnitTests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6595,6 +6595,6 @@ TEST_F(ProjMgrUnitTests, TestRunDebug) {
65956595
argv[5] = (char*)testoutput_folder.c_str();
65966596
EXPECT_EQ(0, RunProjMgr(6, argv, m_envp));
65976597

6598-
ProjMgrTestEnv::CompareFile(testoutput_folder + "/TestHW.cbuild-run.yml",
6599-
testinput_folder + "/TestRunDebug/ref/TestHW.cbuild-run.yml");
6598+
ProjMgrTestEnv::CompareFile(testoutput_folder + "/run-debug+TestHW.cbuild-run.yml",
6599+
testinput_folder + "/TestRunDebug/ref/run-debug+TestHW.cbuild-run.yml");
66006600
}

0 commit comments

Comments
 (0)