| 35 | |
| 36 | # Tests if removing a library is carried over sync/update |
| 37 | def test_sync_update_remove(mbed, testrepos): |
| 38 | test1 = testrepos[0] |
| 39 | popen(['python', mbed, 'import', test1, 'testimport', '-vv']) |
| 40 | |
| 41 | with cd('test1/test2'): |
| 42 | remove('test3') |
| 43 | popen(['python', mbed, 'sync', '-vv']) |
| 44 | mkcommit() |
| 45 | |
| 46 | with cd('test1'): |
| 47 | popen(['python', mbed, 'sync', '-vv']) |
| 48 | mkcommit() |
| 49 | |
| 50 | with cd('testimport'): |
| 51 | popen(['python', mbed, 'update', '-vv']) |
| 52 | |
| 53 | assertls(mbed, 'testimport', [ |
| 54 | "[mbed]", |
| 55 | "testimport", |
| 56 | "`- test2", |
| 57 | ]) |
| 58 | |
| 59 | # Tests if adding a library is carried over sync/update |
| 60 | def test_sync_update_add(mbed, testrepos): |