Skip to content

Commit ebc830f

Browse files
williamhyundongjoon-hyun
authored andcommitted
[SPARK-36164][INFRA] run-test.py should not fail when APACHE_SPARK_REF is not defined
### What changes were proposed in this pull request? This PR aims to change run-test.py so that it does not fail when os.environ["APACHE_SPARK_REF"] is not defined. ### Why are the changes needed? Currently, the run-test.py ends with an error. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass the CIs. Closes #33371 from williamhyun/SPARK-36164. Authored-by: William Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit c8a3c22) Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent fce19ab commit ebc830f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/run-tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ def main():
658658
# If we're running the tests in GitHub Actions, attempt to detect and test
659659
# only the affected modules.
660660
if test_env == "github_actions":
661-
if os.environ["APACHE_SPARK_REF"] != "":
661+
if "APACHE_SPARK_REF" in os.environ:
662662
# Fork repository
663663
changed_files = identify_changed_files_from_git_commits(
664664
"HEAD", target_ref=os.environ["APACHE_SPARK_REF"])

0 commit comments

Comments
 (0)