#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
from . import testutils
if __name__ == "__main__":
import pkg5unittest
import os
import unittest
# Tests in this suite use the read only data directory.
foo10 = """
open foo@1.0,5.11-0
add dir mode=0755 owner=root group=bin path=etc
close """
if modified:
else:
return nmtime
image-modifying operation is completed."""
# Now perform various operations and assert the image was marked
# as modified or not depending on operation.
#
# Operations that should not mark image as modified.
#
("facet", 0),
("contents", 1),
("history", 0),
("info", 1),
("info -r \*", 0),
("list", 1),
("mediator", 0),
("property", 0),
("unset-property no-such-property", 1),
("publisher", 0),
("refresh no-such-publisher", 1),
("variant", 0)
):
#
# Now perform various combos of operations testing modification.
#
# this should not register a modification; compliance tool
# relies on that
# this should not register a modification; compliance tool
# relies on that
# Remove the last_refreshed file for one of the publishers so
# that it will be seen as needing refresh.
# Add, remove, and modify publishers.
if __name__ == "__main__":