script/autobuild.py: define cwd for builder and avoid chdir
authorJoe Guo <joeg@catalyst.net.nz>
Wed, 22 May 2019 11:50:01 +0000 (23:50 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 20 Jun 2019 23:40:16 +0000 (23:40 +0000)
commit04a6967bc393e0305bac9f33a42cceb4eb88f20b
tree911189677518ca2dd4f5a1d23cae41f167748e30
parent6fc3eb8926a1618c2acdf80f9b8d5cc213a90e4d
script/autobuild.py: define cwd for builder and avoid chdir

We can pass cwd in Popen, no need to chdir for each cmd.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
script/autobuild.py