Skip to content

Commit

Permalink
(not yet tested) test script for activity-backup
Browse files Browse the repository at this point in the history
  • Loading branch information
fireartist authored and tmuras committed May 29, 2024
1 parent 29d482b commit 997dcb8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/commands/activity-backup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
source functions.sh

install_db
install_data
cd $MOODLEDIR

export BACKUP=/tmp/mooshactivitybackup.mbz
rm -f $BACKUP
$MOOSHCMD activity-backup -f $BACKUP 1
if ls $BACKUP; then
# rm $BACKUP
exit 0
else
exit 1
fi

0 comments on commit 997dcb8

Please sign in to comment.