Commit 75f6bdc9 authored by Ramon Nou's avatar Ramon Nou
Browse files

active wait for test malleability

parent 35c72211
Loading
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ def test_malleability(gkfwd_daemon_factory, gkfs_client, gkfs_shell):
   
    # loop 10 times, and create a file in each iteration

    for i in range(3):
    for i in range(2):
        file = d00.mountdir / f"file{i}"
        # create a file in gekkofs
        ret = gkfs_client.open(file,
@@ -75,12 +75,7 @@ def test_malleability(gkfwd_daemon_factory, gkfs_client, gkfs_shell):
    assert cmd.stdout.decode() == "Expansion process from 2 nodes to 3 nodes launched...\n"
    assert cmd.exit_code == 0
    
    time.sleep(10)
    while True:
        cmd = gkfs_shell.gkfs_malleability('expand','status')
        if cmd.exit_code == 0:
            break
        time.sleep(2)
    time.sleep(20)

    cmd = gkfs_shell.gkfs_malleability('expand','finalize')
    assert cmd.stdout.decode() == "Expand finalize 0\n"