Commit graph

466 commits

Author SHA1 Message Date
Steven Armstrong
a8e8d7b227 ++debug
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 21:30:17 +02:00
Steven Armstrong
94724427fa ++debug
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 21:27:19 +02:00
Steven Armstrong
1b7ebc5885 more tests for different ways to access object.explorers
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 21:23:04 +02:00
Steven Armstrong
9c04da1d42 DirectoryDictProperty: create directory if it doesnt exist
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 21:21:59 +02:00
Steven Armstrong
e70e0569ec FileList handle exception when deleting old/unused file
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 18:01:46 +02:00
Steven Armstrong
589b5a68b9 FileList raise exception if write failse
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 17:59:23 +02:00
Steven Armstrong
6271e27eb5 transfer object parameter before running type explorers
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 17:38:09 +02:00
Steven Armstrong
7abb338381 bugfix test case
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 17:11:03 +02:00
Steven Armstrong
08d98ac389 only list type explorers if there are any; only transfer type explorers if there are ant
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 17:05:34 +02:00
Steven Armstrong
d02b8d9d30 fix imports
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 17:04:54 +02:00
Steven Armstrong
99ffda3cdf always create global_explorer_out_path
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 17:04:33 +02:00
Steven Armstrong
d2bbd1d14c fix imports
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 17:04:07 +02:00
Steven Armstrong
1f44617133 use remote paths when executing on remote side
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 17:03:05 +02:00
Steven Armstrong
773d325afa only run gencode scripts if they exist
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 16:56:03 +02:00
Steven Armstrong
d37ca88752 +run_type_explorers, minor fixes
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 16:53:48 +02:00
Steven Armstrong
6dada17509 only run type manifest if it exists
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 16:53:07 +02:00
Steven Armstrong
74300ab38e set __cdist_manifest for use in type emulator
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 16:52:06 +02:00
Steven Armstrong
be21cdce17 set __cdist_manifest for use in type emulator
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 16:41:54 +02:00
Steven Armstrong
08ffaf61f5 -legacy code
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 16:36:00 +02:00
Steven Armstrong
fced07634a initial rewrite of config_install
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 16:27:41 +02:00
Steven Armstrong
4f7d75e604 remove/fix copy paste stuff
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 16:27:07 +02:00
Steven Armstrong
12784c8bd8 +FIXME
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 16:26:07 +02:00
Steven Armstrong
fec3cca3b0 delegate path handling to local and remote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 16:25:44 +02:00
Steven Armstrong
80087d4f59 Merge remote-tracking branch 'telmich/master' 2011-10-13 15:16:09 +02:00
Steven Armstrong
6c7e280eac remove obsolete method, merge code
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 15:11:50 +02:00
Steven Armstrong
1c3902f3db implement run_code_remote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 15:09:47 +02:00
Steven Armstrong
7bc68476a1 test for run_code_remote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 15:09:05 +02:00
Steven Armstrong
e605102281 implement run_code_local
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 15:02:10 +02:00
Steven Armstrong
12e5b3e8dc test for run_code_local
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 15:00:07 +02:00
Steven Armstrong
31ce938593 implement transfer_code_remote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 14:57:49 +02:00
Steven Armstrong
5055afe0c0 test for test_transfer_code_remote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 14:57:09 +02:00
Steven Armstrong
01ab81a446 -- duplicate code
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 14:50:50 +02:00
Steven Armstrong
5edcc0537b use api internally instead of constructing the same paths again
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 14:37:50 +02:00
Steven Armstrong
1665b4b5e6 implement run_gencode_remote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 14:32:52 +02:00
Steven Armstrong
6d438d4ec5 implement run_gencode_local
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 14:29:20 +02:00
Steven Armstrong
df57b5188b tests for code
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 14:26:36 +02:00
Steven Armstrong
939962b583 implement code_remote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:42:58 +02:00
Steven Armstrong
6f7528c411 test for code_remote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:42:45 +02:00
Steven Armstrong
93ede2a3be implement code_local
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:40:50 +02:00
Steven Armstrong
8e55e74bc2 test for code_local
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:40:20 +02:00
Steven Armstrong
8fb51a396a implement list_type_explorer_names
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:34:06 +02:00
Steven Armstrong
fb4d20e7e8 test for test_list_type_explorer_names
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:33:24 +02:00
Steven Armstrong
86fcce928c implement list_global_explorer_names
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:31:42 +02:00
Steven Armstrong
f02bdf3e61 test for test_list_global_explorer_names
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:30:41 +02:00
Steven Armstrong
ac79ec101f +consistency
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:22:52 +02:00
Steven Armstrong
f1fdf0f13c add assertion for test_run_global_explorer
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:21:15 +02:00
Steven Armstrong
f846fdd961 add assertion for test_transfer_global_explorers
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:20:07 +02:00
Steven Armstrong
2eb37367a1 add assertion for test_transfer_type_explorers
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:18:34 +02:00
Steven Armstrong
910de0579c add assertion for test_transfer_object_parameters
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:17:22 +02:00
Steven Armstrong
20fae8b52b fix typo
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:14:56 +02:00
Steven Armstrong
dc6218c3e1 initial test for test_transfer_object_parameters
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:14:46 +02:00
Steven Armstrong
d136a6dee3 DirectoryDictProperty: create directory before writing
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:14:01 +02:00
Steven Armstrong
48ae37e832 implement transfer_object_parameters
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:04:23 +02:00
Nico Schottelius
79ad04ebe5 -ws
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-13 12:21:24 +02:00
Nico Schottelius
845a863e01 Merge remote-tracking branch 'steven/master' 2011-10-13 11:25:43 +02:00
Nico Schottelius
143939a6f7 do not change current env
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-13 11:09:57 +02:00
Nico Schottelius
c305735ed5 begin cleanup/reordering in config_install
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-13 11:08:23 +02:00
Steven Armstrong
841b54c6d0 +devnotes, +FIXME
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 11:06:03 +02:00
Steven Armstrong
c15673aef7 +docstring
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 11:05:39 +02:00
Steven Armstrong
63eee391e0 implement Explorer analog to Manifest + tests
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 01:25:31 +02:00
Steven Armstrong
0b1d7d01e0 Merge remote-tracking branch 'telmich/master' 2011-10-13 01:19:25 +02:00
Nico Schottelius
62383eed8d ++stuff
Signed-off-by: Nico Schottelius <nico@loch.schottelius.org>
2011-10-13 03:00:57 +02:00
Nico Schottelius
722f857b68 Merge remote-tracking branch 'steven/master' 2011-10-13 01:00:10 +02:00
Steven Armstrong
a8ec91c804 -e /type_base_path/type_path/ -e /object_base_path/object_path/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 00:35:14 +02:00
Steven Armstrong
48eb996a2e remove useless filename prefix
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 00:26:11 +02:00
Steven Armstrong
5d2827f66e tests for Remote paths
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 00:24:52 +02:00
Steven Armstrong
67de9d8c73 tests for Local paths
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 00:20:55 +02:00
Steven Armstrong
8545221787 consistent naming: /object_base_path/object_path/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 00:16:30 +02:00
Steven Armstrong
1d85d10f4f consistent naming: /type_base_path/type_path/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 00:16:02 +02:00
Nico Schottelius
6d87f4b917 integrate global explorer into core
Signed-off-by: Nico Schottelius <nico@loch.schottelius.org>
2011-10-12 23:59:20 +02:00
Nico Schottelius
50a07da967 global explorer belongs to core
Signed-off-by: Nico Schottelius <nico@loch.schottelius.org>
2011-10-12 23:55:02 +02:00
Steven Armstrong
d47039e91e prepend variables to remote commands
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 23:49:42 +02:00
Nico Schottelius
8d591b45e2 add type to test whether object parameter can be read
Signed-off-by: Nico Schottelius <nico@loch.schottelius.org>
2011-10-12 23:49:17 +02:00
Nico Schottelius
d9af865523 fixture type with one explorer
Signed-off-by: Nico Schottelius <nico@loch.schottelius.org>
2011-10-12 23:12:56 +02:00
Nico Schottelius
f2278c42ab init tests for type_explorer
Signed-off-by: Nico Schottelius <nico@loch.schottelius.org>
2011-10-12 23:10:18 +02:00
Nico Schottelius
4ad2e4f742 ++more to fix
Signed-off-by: Nico Schottelius <nico@loch.schottelius.org>
2011-10-12 23:10:05 +02:00
Steven Armstrong
0a1418f4d3 forward env
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 23:01:41 +02:00
Nico Schottelius
7b5864dfce Merge remote-tracking branch 'steven/master' 2011-10-12 22:44:16 +02:00
Nico Schottelius
d5e24492be begin to prepare TypeExplorer
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-12 20:30:38 +02:00
Nico Schottelius
478ee1a096 -senseless comments
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-12 20:30:08 +02:00
Nico Schottelius
09209e47d6 ideas for explorer run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-12 20:29:53 +02:00
Steven Armstrong
fb80a95555 --debug
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 17:58:09 +02:00
Steven Armstrong
1c38fb492e fixtures for type manifest environment test
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 17:57:06 +02:00
Steven Armstrong
9a33bd3b90 test type manifest environment
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 17:56:45 +02:00
Nico Schottelius
1aa2c48baf new style classes
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-12 17:36:00 +02:00
Nico Schottelius
d93d132c05 finish global_explorer (in theory)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-12 17:27:21 +02:00
Steven Armstrong
5df8479c5a implement Manifest and tests
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 17:20:47 +02:00
Steven Armstrong
a254e1f31e return output of command execution as string instead of bytestring
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 17:12:22 +02:00
Nico Schottelius
b8cbf22086 add global and type explorer
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-12 17:00:00 +02:00
Nico Schottelius
e8f7fe3faa intermediate commit for cdist state
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-12 16:59:02 +02:00
Steven Armstrong
78fd611bb0 fix cdist_base_path
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 16:56:16 +02:00
Steven Armstrong
d2878e931e /Remote/Local/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 16:50:21 +02:00
Steven Armstrong
5f358a5ef1 move link_emulator to local
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 16:46:54 +02:00
Steven Armstrong
117ccf94d3 --debug
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 16:13:22 +02:00
Steven Armstrong
424c060934 +FIXME
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 15:21:25 +02:00
Steven Armstrong
985ed2669a local code execution and tests
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 15:17:06 +02:00
Steven Armstrong
84e044407e +FIXME
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 15:16:33 +02:00
Steven Armstrong
7da3a3c305 remote code execution and tests
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 14:30:10 +02:00
Steven Armstrong
d85118c4c1 Merge remote-tracking branch 'telmich/master' 2011-10-12 08:19:07 +02:00
Nico Schottelius
9f49f99294 use self.log for correct logger
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 17:09:47 +02:00