aboutsummaryrefslogtreecommitdiff
path: root/deprecated/automation/clients/pwd_test.py
diff options
context:
space:
mode:
authorTiancong Wang <tcwang@google.com>2020-02-13 20:58:20 +0000
committerTiancong Wang <tcwang@google.com>2020-02-13 20:58:20 +0000
commite617e3393dd24003aa976ece5050bb291070041c (patch)
tree35fa0fbaeaaddd9cc2a126a05eee3527b51e83a8 /deprecated/automation/clients/pwd_test.py
parent3c0fcaf157c060979b09c0d8e7a982ff5d1acdab (diff)
parent2a19d36a82a612f4a77249ac39b7a0b22c2bafc4 (diff)
downloadtoolchain-utils-e617e3393dd24003aa976ece5050bb291070041c.tar.gz
Merging 18 commit(s) from Chromium's toolchain-utils am: 0ae38c8498 am: 2a19d36a82
Change-Id: If9b258fea573c36eed78a3f6657669ea1adb115d
Diffstat (limited to 'deprecated/automation/clients/pwd_test.py')
-rwxr-xr-xdeprecated/automation/clients/pwd_test.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/deprecated/automation/clients/pwd_test.py b/deprecated/automation/clients/pwd_test.py
new file mode 100755
index 00000000..493444d5
--- /dev/null
+++ b/deprecated/automation/clients/pwd_test.py
@@ -0,0 +1,27 @@
+#!/usr/bin/python2
+#
+# Copyright 2010 Google Inc. All Rights Reserved.
+
+import pickle
+import xmlrpclib
+
+from automation.common import job
+from automation.common import job_group
+from automation.common import machine
+
+
+def Main():
+ server = xmlrpclib.Server('http://localhost:8000')
+
+ command = ['echo These following 3 lines should be the same', 'pwd', '$(pwd)',
+ 'echo ${PWD}']
+
+ pwd_job = job.Job('pwd_job', ' && '.join(command))
+ pwd_job.DependsOnMachine(machine.MachineSpecification(os='linux'))
+
+ group = job_group.JobGroup('pwd_client', [pwd_job])
+ server.ExecuteJobGroup(pickle.dumps(group))
+
+
+if __name__ == '__main__':
+ Main()