Skip to content

Commit

Permalink
Read output from file
Browse files Browse the repository at this point in the history
  • Loading branch information
bensteinberg committed Nov 1, 2023
1 parent 6d17d9d commit 064e41b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test_update_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@ def test_main(test_files, monkeypatch):

# first run detects changes to toplevel and subdir
update_tags.main(compose_path)
assert os.environ['GITHUB_OUTPUT'] == "services-to-rebuild=toplevel subdir"
assert os.environ['GITHUB_OUTPUT'].read() == "services-to-rebuild=toplevel subdir"

# no update the second time
update_tags.main(compose_path)
assert os.environ['GITHUB_OUTPUT'] == "services-to-rebuild="
assert os.environ['GITHUB_OUTPUT'].read() == "services-to-rebuild="

# 'push' action checks rebuild for all tags if there are any
# changes
update_tags.main(compose_path, action='push')
assert os.environ['GITHUB_OUTPUT'] == "services-to-rebuild=toplevel subdir"
assert os.environ['GITHUB_OUTPUT'].read() == "services-to-rebuild=toplevel subdir"

# check hash values -- hashes are: build config, Dockerfile contents, x-hash-paths contents
toplevel_hash = "bd018100e5b1c9159130decc1fa8884c"
Expand Down

0 comments on commit 064e41b

Please sign in to comment.