Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into amd
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaj committed Nov 27, 2024
2 parents 0d5d489 + 277ea49 commit 0866742
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,10 @@ impl Processor<PGM> for FlowGenerator {
));
Return::None
}
PGM::Render(text) => {
self.push_body(&format!(r#"{}"#, text));
Return::None
}
PGM::Resources => {
let orig = self.resources_block;
self.resources_block = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1837,6 +1837,7 @@ test_flow
@G200_864CE8F_FAILED = -1;
@G100_864CE8F_RAN = -1;
@DEEP_TEST_864CE8F_FAILED = -1;
@DEEP_TEST_1_864CE8F_FAILED = -1;
}, open,"Init Flow Control Vars", ""
{
run_and_branch(program_ckbd_864CE8F)
Expand Down Expand Up @@ -2410,7 +2411,21 @@ test_flow
}, open,"test", ""
if @DEEP_TEST_864CE8F_FAILED == 1 then
{
run(on_deep_1);
run_and_branch(on_deep_1)
then
{
}
else
{
@DEEP_TEST_1_864CE8F_FAILED = 1;
}
}
else
{
}
if @DEEP_TEST_1_864CE8F_FAILED == 1 then
{
multi_bin;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ language_revision = 1;
declarations

@ALARM = 0;
@DEEP_TEST_1_864CE8F_FAILED = 0;
@DEEP_TEST_864CE8F_FAILED = 0;
@ERASE_FAILED_1_864CE8F_FAILED = 0;
@ERASE_FAILED_2_864CE8F_FAILED = 0;
Expand Down
6 changes: 5 additions & 1 deletion test_apps/python_app/example/flows/o1_testcases/prb1.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
# Test that a reference to a deeply nested test works (mainly for SMT8)
flow.add_test("on_deep_1",
if_failed="deep_test",
test_text="some_custom_text")
test_text="some_custom_text",
id="deep_test_1")

with flow.if_failed("deep_test_1"):
flow.render_str("multi_bin;")

flow.good_die(1, description="Good die!", softbin=1)

Expand Down

0 comments on commit 0866742

Please sign in to comment.