Is it possible that the environ of manifest differs / misses __cdist_object_marker #180

Closed
opened 2021-11-20 15:20:53 +00:00 by ungleich-gitea · 1 comment

Created by: telmich

In emulator testcase I found a bug that cdist_object_marker is different in the manifest, because it
is inherited from earlier run and not updated by the "local" object:

......path in test/home/users/nico/.tmp/tmp.cdist.test.114x5i7b/out/object/__file/cdist-test-id/.cdist-lsmgc6n1/stdin

path in env.cdist-n7b2ivji

path in emu: /home/users/nico/.tmp/tmp.cdist.test.114x5i7b/out/object/__file/cdist-test-id/.cdist-n7b2ivji/stdin

Code changes

emulator.py:
try:
# go directly to file instead of using CdistObject's api
# as that does not support streaming
path = os.path.join(self.cdist_object.absolute_path, 'stdin')
print("path in emu: %s" % path)

test/emulator/init.py:

    stdin_out_path = os.path.join(cdist_object.absolute_path, 'stdin')
    print("path in test%s\n" % stdin_out_path)
    print("path in env%s\n" % env['__cdist_object_marker'])

See also commit b032189

*Created by: telmich* In emulator testcase I found a bug that cdist_object_marker is different in the manifest, because it is inherited from earlier run and not updated by the "local" object: ......path in test/home/users/nico/.tmp/tmp.cdist.test.114x5i7b/out/object/__file/cdist-test-id/.cdist-lsmgc6n1/stdin path in env.cdist-n7b2ivji path in emu: /home/users/nico/.tmp/tmp.cdist.test.114x5i7b/out/object/__file/cdist-test-id/.cdist-n7b2ivji/stdin Code changes emulator.py: try: # go directly to file instead of using CdistObject's api # as that does not support streaming path = os.path.join(self.cdist_object.absolute_path, 'stdin') print("path in emu: %s" % path) test/emulator/**init**.py: ``` stdin_out_path = os.path.join(cdist_object.absolute_path, 'stdin') print("path in test%s\n" % stdin_out_path) print("path in env%s\n" % env['__cdist_object_marker']) ``` See also commit b032189
ungleich-gitea added the
Stale
label 2021-11-20 15:20:53 +00:00
Author
Owner

closed

closed
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#180
No description provided.