Content-Length: 272915 | pFad | http://github.com/postgrespro/testgres/issues/265

DF NodeApp.make_empty must pass os_ops and port_manager to nodes · Issue #265 · postgrespro/testgres · GitHub
Skip to content

NodeApp.make_empty must pass os_ops and port_manager to nodes #265

Open
@dmitry-lipetsk

Description

@dmitry-lipetsk

Constructor of NodeApp obtains os_ops but does not pass it to a new node. See this code:

testgres/testgres/node.py

Lines 2335 to 2346 in 44d61c2

self.os_ops = os_ops
def make_empty(
self,
base_dir=None,
port=None,
bin_dir=None):
real_base_dir = os.path.join(self.test_path, base_dir)
self.os_ops.rmdirs(real_base_dir, ignore_errors=True)
self.os_ops.makedirs(real_base_dir)
node = PostgresNode(base_dir=real_base_dir, port=port, bin_dir=bin_dir)

Also, the constructor of NodeApp can get port_manager object and pass it to the new nodes in make_empty, too.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/postgrespro/testgres/issues/265

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy