diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2009-07-24 22:12:12 +0200 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2009-07-24 22:12:12 +0200 |
commit | 63ab0f7db5a26a9e760ba5e3b8a029cad10abcb2 (patch) | |
tree | e6d765b5fdbb6696ee91e40125937f47ce3732f4 /tests/runtime/automatic-reuse-fs-sda/profile | |
parent | c0b16a498cae06666e61d6913fe3c402b77a3242 (diff) |
add automatic-reuse-fs-sda test, which tests the "user has an existing partition he wants to reuse" scenario, with even a rollback and re-do it thrown in
Diffstat (limited to 'tests/runtime/automatic-reuse-fs-sda/profile')
-rw-r--r-- | tests/runtime/automatic-reuse-fs-sda/profile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/runtime/automatic-reuse-fs-sda/profile b/tests/runtime/automatic-reuse-fs-sda/profile new file mode 100644 index 0000000..e5aadb5 --- /dev/null +++ b/tests/runtime/automatic-reuse-fs-sda/profile @@ -0,0 +1,37 @@ +TARGET_PACKAGES='aif' + +GRUB_DEVICE=/dev/sda + +# modify worker_prepare_disks: we don't want to repartition (process_disks). also we want to do a rollback + setup again + +worker_prepare_disks () +{ + echo "$var_BLOCKDATA" > $TMP_BLOCKDEVICES + if process_filesystems + then + infofy "disk processing ok" + else + show_warning "PROCESSING FAILED" + return 1 + fi + if rollback_filesystems + then + infofy "rollback ok" + else + show_warning "ROLLBACK FAILED" + return 1 + fi + if process_filesystems + then + infofy "disk processing ok" + else + show_warning "PROCESSING FAILED" + return 1 + fi +} + + +BLOCKDATA='/dev/sda1 raw no_label ext2;yes;/boot;target;no_opts;no_label;no_params +/dev/sda2 raw no_label swap;yes;no_mountpoint;target;no_opts;no_label;no_params +/dev/sda3 raw no_label ext4;yes;/;target;no_opts;no_label;no_params +/dev/sda4 raw no_label ext3:no:/home;target;no_opts;no_label;no_params' |