Skip to content

Commit 55ae568

Browse files
Merge pull request #391 from gnpaone/sync-action
Sync source repo
2 parents 6e9319b + 68a380a commit 55ae568

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

src/recipe.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ impl<'src, D> Recipe<'src, D> {
287287

288288
if config.dry_run
289289
|| config.verbosity.loquacious()
290+
|| config.timestamp
290291
|| !((quiet_line ^ self.quiet)
291292
|| (context.module.settings.quiet && !self.no_quiet())
292293
|| config.verbosity.quiet())

tests/timestamps.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
use super::*;
22

3+
#[test]
4+
fn quiet() {
5+
Test::new()
6+
.justfile(
7+
"
8+
set quiet
9+
recipe:
10+
echo foo
11+
",
12+
)
13+
.arg("--timestamp")
14+
.stderr_regex(concat!(r"\[\d\d:\d\d:\d\d\] echo foo", "\n"))
15+
.stdout("foo\n")
16+
.success();
17+
}
18+
319
#[test]
420
fn linewise() {
521
Test::new()

0 commit comments

Comments
 (0)