Skip to content

Commit dd98246

Browse files
authored
ci: skip test_readonly_root only on Kokoro (#434)
* ci: skip test_readonly_root only on Kokoro fixes #407 * ci: remove migration_test_data_persistence skip fixes #408
1 parent 4ee18d8 commit dd98246

File tree

1 file changed

+6
-6
lines changed
  • packages/django-google-spanner/django_spanner

1 file changed

+6
-6
lines changed

packages/django-google-spanner/django_spanner/features.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,13 +278,13 @@ class DatabaseFeatures(BaseDatabaseFeatures):
278278
# This test isn't isolated on databases like Spanner that don't
279279
# support transactions: https://code.djangoproject.com/ticket/31413
280280
'migrations.test_loader.LoaderTests.test_loading_squashed',
281-
# "Permission errors are not swallowed":
282-
# https://github.com/googleapis/python-spanner-django/issues/407
283-
'file_uploads.tests.DirectoryCreationTests.test_readonly_root',
284-
# Migrations data persistance issue to be investigated:
285-
# https://github.com/googleapis/python-spanner-django/issues/408
286-
'migration_test_data_persistence.tests.MigrationDataNormalPersistenceTestCase.test_persistence',
287281
)
282+
# Kokoro-specific skips.
283+
if os.environ.get('KOKORO_JOB_NAME'):
284+
skip_tests += (
285+
# os.chmod() doesn't work on Kokoro?
286+
'file_uploads.tests.DirectoryCreationTests.test_readonly_root',
287+
)
288288

289289
if os.environ.get('SPANNER_EMULATOR_HOST', None):
290290
# Some code isn't yet supported by the Spanner emulator.

0 commit comments

Comments
 (0)