15
15
# Tests if a 'mbed sync', commit, and 'mbed update' works on a simple file change
16
16
def test_sync_update (mbed , testrepos ):
17
17
test1 = testrepos [0 ]
18
- popen (['python' , mbed , 'import' , test1 , 'testimport' ])
18
+ popen (['python' , mbed , 'import' , test1 , 'testimport' , '-vv' ])
19
19
20
20
with cd ('test1/test2' ):
21
21
with open ('hello' , 'w' ) as f :
22
22
f .write ('hello\n ' )
23
23
popen ([scm (), 'add' , 'hello' ])
24
- popen (['python' , mbed , 'sync' ])
24
+ popen (['python' , mbed , 'sync' , '-vv' ])
25
25
mkcommit ()
26
26
27
27
with cd ('test1' ):
28
- popen (['python' , mbed , 'sync' ])
28
+ popen (['python' , mbed , 'sync' , '-vv' ])
29
29
mkcommit ()
30
30
31
31
with cd ('testimport' ):
32
- popen (['python' , mbed , 'update' ])
32
+ popen (['python' , mbed , 'update' , '-vv' ])
33
33
34
34
assert os .path .isfile ('testimport/test2/hello' )
35
35
36
36
# Tests if removing a library is carried over sync/update
37
37
def test_sync_update_remove (mbed , testrepos ):
38
38
test1 = testrepos [0 ]
39
- popen (['python' , mbed , 'import' , test1 , 'testimport' ])
39
+ popen (['python' , mbed , 'import' , test1 , 'testimport' , '-vv' ])
40
40
41
41
with cd ('test1/test2' ):
42
42
remove ('test3' )
43
- popen (['python' , mbed , 'sync' ])
43
+ popen (['python' , mbed , 'sync' , '-vv' ])
44
44
mkcommit ()
45
45
46
46
with cd ('test1' ):
47
- popen (['python' , mbed , 'sync' ])
47
+ popen (['python' , mbed , 'sync' , '-vv' ])
48
48
mkcommit ()
49
49
50
50
with cd ('testimport' ):
51
- popen (['python' , mbed , 'update' ])
51
+ popen (['python' , mbed , 'update' , '-vv' ])
52
52
53
53
assertls (mbed , 'testimport' , [
54
54
"testimport" ,
@@ -58,19 +58,19 @@ def test_sync_update_remove(mbed, testrepos):
58
58
# Tests if adding a library is carried over sync/update
59
59
def test_sync_update_add (mbed , testrepos ):
60
60
test1 = testrepos [0 ]
61
- popen (['python' , mbed , 'import' , test1 , 'testimport' ])
61
+ popen (['python' , mbed , 'import' , test1 , 'testimport' , '-vv' ])
62
62
63
63
with cd ('test1/test2' ):
64
64
copy ('test3' , 'testcopy' )
65
- popen (['python' , mbed , 'sync' ])
65
+ popen (['python' , mbed , 'sync' , '-vv' ])
66
66
mkcommit ()
67
67
68
68
with cd ('test1' ):
69
- popen (['python' , mbed , 'sync' ])
69
+ popen (['python' , mbed , 'sync' , '-vv' ])
70
70
mkcommit ()
71
71
72
72
with cd ('testimport' ):
73
- popen (['python' , mbed , 'update' ])
73
+ popen (['python' , mbed , 'update' , '-vv' ])
74
74
75
75
assertls (mbed , 'testimport' , [
76
76
"testimport" ,
@@ -84,19 +84,19 @@ def test_sync_update_add(mbed, testrepos):
84
84
# Tests if moving a library is carried over sync/update
85
85
def test_sync_update_move (mbed , testrepos ):
86
86
test1 = testrepos [0 ]
87
- popen (['python' , mbed , 'import' , test1 , 'testimport' ])
87
+ popen (['python' , mbed , 'import' , test1 , 'testimport' , '-vv' ])
88
88
89
89
with cd ('test1/test2' ):
90
90
move ('test3' , 'testmove' )
91
- popen (['python' , mbed , 'sync' ])
91
+ popen (['python' , mbed , 'sync' , '-vv' ])
92
92
mkcommit ()
93
93
94
94
with cd ('test1' ):
95
- popen (['python' , mbed , 'sync' ])
95
+ popen (['python' , mbed , 'sync' , '-vv' ])
96
96
mkcommit ()
97
97
98
98
with cd ('testimport' ):
99
- popen (['python' , mbed , 'update' ])
99
+ popen (['python' , mbed , 'update' , '-vv' ])
100
100
101
101
assertls (mbed , 'testimport' , [
102
102
"testimport" ,
0 commit comments