Skip to content

Commit

Permalink
misc: in crcchecker.py, don't check for uncommitted changes in CI
Browse files Browse the repository at this point in the history
Type: fix

Change-Id: I63260a953e54518b3084b62fccdb4af81315b229
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
(cherry picked from commit 3a0d7d2)
  • Loading branch information
dwallacelf committed Apr 8, 2024
1 parent 500ac05 commit dd59e1b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions extras/scripts/crcchecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,15 @@ def filelist_from_git_ls():

def is_uncommitted_changes():
"""Returns true if there are uncommitted changes in the repo"""
git_status = "git status --porcelain -uno"
returncode = run(git_status.split(), stdout=PIPE, stderr=PIPE)
if returncode.returncode != 0:
sys.exit(returncode.returncode)

if returncode.stdout:
return True
# Don't run this check in the Jenkins CI
if os.getenv("FDIOTOOLS_IMAGE") is None:
git_status = "git status --porcelain -uno"
returncode = run(git_status.split(), stdout=PIPE, stderr=PIPE)
if returncode.returncode != 0:
sys.exit(returncode.returncode)

if returncode.stdout:
return True
return False


Expand Down

0 comments on commit dd59e1b

Please sign in to comment.