Skip to content

Commit abe0312

Browse files
authored
tests: fix tests for debug command (VirusTotal#581)
These don't get run regularly and were broken, so fix them by using the correct cargo_bin macro and removing the broken unwrap.
1 parent 3c04e42 commit abe0312

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

cli/src/tests/debug.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
use assert_cmd::{Command, cargo::cargo_bin};
1+
use assert_cmd::{Command, cargo_bin};
22
use assert_fs::TempDir;
33
use assert_fs::prelude::*;
44

55
#[test]
66
fn ast() {
77
Command::new(cargo_bin!("yr"))
8-
.unwrap()
98
.arg("debug")
109
.arg("ast")
1110
.arg("src/tests/testdata/foo.yar")
@@ -16,7 +15,6 @@ fn ast() {
1615
#[test]
1716
fn cst() {
1817
Command::new(cargo_bin!("yr"))
19-
.unwrap()
2018
.arg("debug")
2119
.arg("cst")
2220
.arg("src/tests/testdata/foo.yar")
@@ -32,7 +30,6 @@ fn wasm() {
3230
input_file.write_str("rule test { condition: true }").unwrap();
3331

3432
Command::new(cargo_bin!("yr"))
35-
.unwrap()
3633
.arg("debug")
3734
.arg("wasm")
3835
.arg(input_file.path())

0 commit comments

Comments
 (0)