Skip to content

Commit 734af48

Browse files
authored
Merge pull request #3696 from rina23q/improve/3646/tedge-diag-prints-output-dir-to-stdout
chore: tedge diag's tarball path prints out to stdout
2 parents ac991c0 + 3fe5fff commit 734af48

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

crates/core/tedge/src/cli/diag/collect.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ impl DiagCollectCommand {
201201

202202
// Cannot write this message to summary.log since the tarball has already been created
203203
eprintln!("Diagnostic information saved to {tarball_path}");
204+
println!("{tarball_path}");
204205
Ok(tarball_path)
205206
}
206207
}

tests/RobotFramework/tests/tedge/diag/tedge_diag_collect.robot

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ Test Tags theme:troubleshooting theme:cli theme:plugins
1111

1212
*** Test Cases ***
1313
Run tedge diag collect
14-
Execute Command tedge diag collect --name default
14+
${stdout}= Execute Command tedge diag collect --name default strip=${True}
1515
File Should Exist /tmp/default.tar.gz
1616
Directory Should Not Exist /tmp/default
17+
Should Be Equal ${stdout} /tmp/default.tar.gz
1718

1819
Execute Command tar -xvzf /tmp/default.tar.gz -C /tmp
1920
Validate preset plugins default

0 commit comments

Comments
 (0)