diff options
| -rw-r--r-- | meta/classes-recipe/ptest-cargo.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/ptest-cargo.bbclass b/meta/classes-recipe/ptest-cargo.bbclass index ece25ff1eb..8351644b0f 100644 --- a/meta/classes-recipe/ptest-cargo.bbclass +++ b/meta/classes-recipe/ptest-cargo.bbclass | |||
| @@ -103,10 +103,10 @@ python do_install_ptest_cargo() { | |||
| 103 | with open(ptest_script, "a") as f: | 103 | with open(ptest_script, "a") as f: |
| 104 | if not script_exists: | 104 | if not script_exists: |
| 105 | f.write("#!/bin/sh\n") | 105 | f.write("#!/bin/sh\n") |
| 106 | f.write("rc=0\n") | ||
| 107 | else: | 106 | else: |
| 108 | f.write(f"\necho \"\"\n") | 107 | f.write(f"\necho \"\"\n") |
| 109 | f.write(f"echo \"## starting to run rust tests ##\"\n") | 108 | f.write(f"echo \"## starting to run rust tests ##\"\n") |
| 109 | f.write("if [ -z \"$rc\" ]; then rc=0; fi\n") | ||
| 110 | for test_path in test_paths: | 110 | for test_path in test_paths: |
| 111 | script = textwrap.dedent(f"""\ | 111 | script = textwrap.dedent(f"""\ |
| 112 | if ! {test_path} {rust_test_args} | 112 | if ! {test_path} {rust_test_args} |
