diff options
author | James Ennis <james.ennis@codethink.com> | 2018-11-08 11:32:59 +0000 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2018-11-08 17:54:18 +0000 |
commit | 09faf0029d02cd2792b007041e6e4a793cf6bd3c (patch) | |
tree | 2e2703047659c2c32a512940dab57cde0610a77f /tests | |
parent | fe33e328fac88aeb94855d6ddf1d4d76c37415b6 (diff) | |
download | buildstream-09faf0029d02cd2792b007041e6e4a793cf6bd3c.tar.gz |
artifactcache.py: Fix misleading error message when using % cache quotajennis/quota_declaration_fix
Due to the changed Exception message, this patch also changes
the test_parse_size_over_1024T test in misc.py
Diffstat (limited to 'tests')
-rw-r--r-- | tests/utils/misc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/utils/misc.py b/tests/utils/misc.py index ae584e4d5..7df08aec5 100644 --- a/tests/utils/misc.py +++ b/tests/utils/misc.py @@ -27,4 +27,5 @@ def test_parse_size_over_1024T(cli, tmpdir): patched_statvfs = mock_os.mock_statvfs(f_bavail=bavail, f_bsize=BLOCK_SIZE) with mock_os.monkey_patch("statvfs", patched_statvfs): result = cli.run(project, args=["build", "file.bst"]) - assert "1025T of available system storage" in result.stderr + failure_msg = 'Your system does not have enough available space to support the cache quota specified.' + assert failure_msg in result.stderr |