

def test_sync_branch_devel_unclean(qisrc_action, git_server, test_git):
    git_server.create_repo('foo.git')
    qisrc_action('init', git_server.manifest_url)
    git_server.push_file('foo.git', 'foo.txt', 'a super change')
    git_server.push_file('foo.git', 'bar.txt', 'a super bugfix')
    git_worktree = TestGitWorkTree()
    foo = git_worktree.get_git_project('foo')
    test_git = TestGit(foo.path)
    test_git.call('checkout', '-b', 'devel')
    test_git.commit_file('developing.txt', 'like a boss')
    git_server.push_file('foo.git', 'foobar.txt', 'some other change')
    wip_txt = os.path.join(foo.path, 'wip.txt')
    open(wip_txt, 'w').close()
    qisys.script.run_action('qisrc.actions.sync', ['--rebase-devel'])
    assert os.path.exists(wip_txt)

dataset/ETHPy150Open aldebaran/qibuild/python/qisrc/test/test_qisrc_sync.py test_sync_branch_devel_unclean/original