Skip to content

Commit

Permalink
[FIX] fixed ytest
Browse files Browse the repository at this point in the history
  • Loading branch information
Cr0a3 committed Oct 27, 2024
1 parent ba92769 commit 0bbcdac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/tools/ygen-mc/errors/error0.yl
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
cargo run -p ygen-mc -- -as=Hi -no-clr -no-out -no-asm
# STDOUT:
Error: unknown instruction: 'hi'
# EXPECT_FAIL
# EXIT_CODE=-1
5 changes: 3 additions & 2 deletions tools/ytest/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ fn main() {

for cmd in parsed.cmd {
let args = cmd .replace("%s", path_str)
.replace("%c", path2_str);
.replace("%c", path2_str)
.replace("./", "");
let args = unescaper::unescape(&args).unwrap();
let args = args.trim();

Expand Down Expand Up @@ -152,7 +153,7 @@ fn main() {
exit(-1);
}
}
} else {
} else if !parsed.ignore_fail {
println!("{}: the programm didn't exit sucessfull with code {}", "Error".red().bold(), exit_code);
exit(-1);
}
Expand Down

0 comments on commit 0bbcdac

Please sign in to comment.